What command do you use to exit a loop SQL?
Answer
SQL Server BREAK statement
overview
To exit the current iteration of a loop, you use the BREAK statement. In this syntax, the BREAK statement exit the WHILE loop immediately once the condition specified in the IF statement is met.
Answer
SQL Server BREAK statement
overview
To exit the current iteration of a loop, you use the BREAK statement. In this syntax, the BREAK statement exit the WHILE loop immediately once the condition specified in the IF statement is met.