Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

sql server for loop

DECLARE @cnt INT = 0;

WHILE @cnt < cnt_total
BEGIN
   {...statements...}
   SET @cnt = @cnt + 1;
END;
Source by www.techonthenet.com #
 
PREVIOUS NEXT
Tagged: #sql #server #loop
ADD COMMENT
Topic
Name
7+5 =