Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

Syntax of for-loop in SQL Server

--There is no for-loop, only the while-loop:

DECLARE @i int = 0

WHILE @i < 20
BEGIN
    SET @i = @i + 1
    /* do some work */
END
Source by angular.io #
 
PREVIOUS NEXT
Tagged: #Syntax #SQL #Server
ADD COMMENT
Topic
Name
8+9 =