Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Removing
Message
 
 
À
20/09/2002 09:23:49
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Titre:
Divers
Thread ID:
00702476
Message ID:
00702701
Vues:
11
Try
DECLARE @time varchar(32), @timenew varchar(32), @pos int
SET @time = CONVERT(varchar(32), getdate(),114)
SET @pos = 0
WHILE @pos < LEN(@time)
BEGIN
	SET @pos = @pos + 1
	IF SUBSTRING(@time, @pos, 1) <> ':'
 	  IF @pos = 1 
		SET @timenew = SUBSTRING(@time, @pos, 1)
          ELSE
		SET @timenew = @timenew + SUBSTRING(@time, @pos, 1)
END
SELECT @timenew
>Interesting, it returned a value of 65.
>
< snip >
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform