Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

continue in sql

DECLARE @counter INT = 0;
WHILE @counter < 5
BEGIN
    SET @counter = @counter + 1;
    IF @counter = 3
        CONTINUE;	
    PRINT @counter;
END
// 1 2 4 5
Source by www.sqlservertutorial.net #
 
PREVIOUS NEXT
Tagged: #continue #sql
ADD COMMENT
Topic
Name
7+4 =