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
1 answer
asked Dec 16, 2020 in SQL by Appu (6.1k points)
0 votes
1 answer
0 votes
1 answer
asked Jan 5, 2021 in SQL by Appu (6.1k points)
Welcome to Intellipaat Community. Get your technical queries answered by top developers!

30.5k questions

32.5k answers

500 comments

108k users

Browse Categories

...