Is there a way to exit out of the WHILE @@FETCH_STATUS = 0
while performing a db_cursor?
I tried SET @@FETCH_STATUS = 1
, but as i expected, an error. Help?
You can use BREAK
to exit a while loop.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With