In this post, we will discuss how to use while loop in SQL server 2008.
Also, you can check out my previous posts on
Below is the syntax to use While Loop in SQL Server:
DECLARE @flag INT
SET @flag = 0
WHILE @flag <= 5
SET @flag = @flag + 1
PRINT ‘You are in ‘ + CAST (@flag AS NVARCHAR(10)) +’ Loop’
The out put will come as shown in the figure below.
-: FREE PDF e-Book Download :-
51 JSOM Examples in SharePoint Online
You May Also like the Following SharePoint Online Tutorials: