Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Time format only ???
Message
De
14/10/2003 04:23:23
 
 
À
13/10/2003 22:59:14
Budi Irawan
Berlian Laju Tanker
Jakarta, Indonésie
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Divers
Thread ID:
00837279
Message ID:
00838435
Vues:
34
Hi Budi,

You can use ODBC generic functions.
SELECT { fn CONVERT( { fn NOW() }, SQL_CHAR) }

SELECT { fn CONVERT( myFieldDatetime, SQL_INTERVAL_HOUR_TO_SECOND ) }

SELECT { fn CONVERT( myFieldDatetime, SQL_INTERVAL_HOUR_TO_MINUTE ) }
ODBC Driver traslate this to specific Data Source SQL code.

But the ODBC drivers, that support the keywords SQL_INTERVAL_XXXXX
are little ( SQL Server not support this ).

You can try this, but i'm not sure it is formatting stable
SELECT { fn RIGHT({ fn RTRIM({ fn CONVERT( myFieldDatetime, SQL_CHAR ) })},7)}
Fabio
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform