Back
What is the syntax of a for loop in TSQL?
T-SQL has WHILE loop, it doesn't have the FOR loop.
you can refer to WHILE (Transact-SQL)
Try this query:
WHILE Boolean_expressionBEGINEND
WHILE Boolean_expression
BEGIN
END
31k questions
32.8k answers
501 comments
693 users