BREAK (Transact-SQL)
Collapse the table of content
Expand the table of content

BREAK (Transact-SQL)

Exits the innermost loop in a WHILE statement or an IF…ELSE statement inside a WHILE loop. Any statements appearing after the END keyword, marking the end of the loop, are executed. BREAK is frequently, but not always, started by an IF test.

Community Additions

© 2015 Microsoft