sql - How can I exit an inner loop and continue an outer loop? -


this follow-up my previous question (thanks answer, btw!)

if have 2 loops:

while @@fetch_status=0 begin      set y=y+1     set x=0      while @@fetch_status=0      begin         x=y+1         if y = 5         'exit second while , first while --> y=y+1      end end 

...how can exit inner loop , continue outer (see comment)?

i think you're looking break

books online great resource tsql


Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -