I would like to know if you have any command that I can use inside a for / loop to jump to the next fetch.
I know that the Exit command interrupts the execution of the for / loop, I would only like that fetch was discarded.
What I want to know, as if within a loop I can skip that item and go to the next loop item.
For example the loop goes from 1 to 10, inside has some programming, but when it is 4 is not to perform, that is, from 1 to 3 it makes the normal loop, in 4 pula, from 5 to 10 does The normal loop.
The fetch will always be sequential, the fetch itself is not pulse, but processing within the loop.
From what I understand this is what Trevisolli said or your cursor query is bringing lines you should not and you have to fix in SQL, which gets much more intuitive and less with "workaround" face.
It does not make sense to make a "Next" in a cursor.
Type: Comes line per line, then you test that line X you do not need. But at that moment the line has come ... You already have it, that is, you already did the fetch. Bear?
Then, the best way out is to put inside SQL not to bring what you do not need. Or if it is not possible to do this, put the IF as Trevisolli suggested.