Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Removing
Message
 
 
À
19/09/2002 16:36:29
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Titre:
Divers
Thread ID:
00702476
Message ID:
00702502
Vues:
19
You can use T_SQL REPLACE() function to remove colons.
SELECT REPLACE(CONVERT(varchar(32), getdate(),114), ':', '')
>SQL Server returns a value from the following command
>with colons (:) and down to the milisecond.
>
>select convert(varchar,getdate(),114)
>
>All I want is the time portion returned without the colons
>like this in VFP:
>
>xx= '15:36:31:293'
>?left(chrtran(xx,':',''),6)
>
>
>Can it be done in SQL Server via T-SQL?
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform