Space to Share Ideas
Thursday, 7 November 2013
Basic While Loop example in T-SQL
Hi All,
Below is the sample while code snippet in T-SQL.
DECLARE @counter INT
SET @counter=10
WHILE @counter>=1
BEGIN
PRINT @counter
SET @counter = @counter-1
END
GO
Thanks,
Anilkumar
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment