Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Removing
Message
 
 
À
20/09/2002 08:56:26
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Titre:
Divers
Thread ID:
00702476
Message ID:
00702663
Vues:
17
Yes, I tested it under SQL 2000 and it returns result w/o spaces. What version are you running?

>Sergey, did you test this? Here are my results:
>
>select convert(varchar,getdate(),114)
>retuns: 08:01:30:890
>
>select replace(convert(varchar,getdate(),114),':','')
>returns: 08 01 30 890
>
>Notice the spaces that are being returned.
>
>>You can use T_SQL REPLACE() function to remove colons.
SELECT REPLACE(CONVERT(varchar(32), getdate(),114), ':', '')
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform