I have a SQL Server cursor. I want to skip one iteration of the loop when a specific condition occurs. Break takes you out of the cursor loop and continue does not appear to be doing anything.
Is there a command that says “hey this record is no good so let go ahead and skip it and work on the next one”.
By the way I know cursors are evil like drivers who go 43 MPH in the passing lane, but as often happens in software I’m stuck with it.
Thanks
Why don’t you just use an if statement: