Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
3 views
in SQL by (20.3k points)

What is the syntax of a for loop in TSQL?

1 Answer

0 votes
by (40.7k points)

T-SQL has WHILE loop, it doesn't have the FOR loop.

you can refer to WHILE (Transact-SQL)

Try this query:

WHILE Boolean_expression

BEGIN

END

Related questions

0 votes
3 answers
asked Dec 16, 2020 in SQL by Appu (6.1k points)
0 votes
2 answers
0 votes
1 answer
asked Jan 5, 2021 in SQL by Appu (6.1k points)

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...