Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
For... Next for SQL
Message
 
 
À
13/07/2004 19:26:23
Ricardo Giron
Secrex Compañía de Seguros de Crédito
Lima, Pérou
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Divers
Thread ID:
00924012
Message ID:
00924018
Vues:
14
Hi Ricardo,

You can use WHILE loop to emulate FOR loop.
DECLARE @i int, @count int, @step int
SELECT @i=1, @step=1, @count=5
WHILE @i <= @count  BEGIN
	PRINT @i
	SET @i = @i + @step
END
Than again, it all depends what you need it for. There maybe other ways achive what you want.

>
>How can I implement a For... Next in SQL?
>
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform