ASHISH SRIVASTAVA
(Move to ...)
▼
Friday, 9 December 2016
How to Use While LOOP in SQL
DECLARE
@TOTALV
BIGINT
DECLARE
@InitialValue
BIGINT
SET
@InitialValue=1
SET
@TOTALV=12
WHILE (@InitialValue<=@TOTALV)
BEGIN
print @InitialValue
SET
@InitialValue=@InitialValue+1
END
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment