Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cycles with SQL pass thought
Message
General information
Forum:
Microsoft SQL Server
Category:
Other
Miscellaneous
Thread ID:
00432647
Message ID:
00432688
Views:
22
From Books Online, search "FOR LOOP":
DECLARE
@COUNTER NUMERIC
SELECT @COUNTER = 1
WHILE (@COUNTER <5)
BEGIN
    SELECT @COUNTER = @COUNTER +1
END
I've never done it, but, like I said, this example is from Books Online.

>Anyone knows if it's possible to make a cycle in SQL "language"?
Sylvain Demers
Previous
Reply
Map
View

Click here to load this message in the networking platform