Hi
I am trying to figure out how to exit a cursor loop if a specified
condition occurs.
I have a select count(*) on a table like this
select lagplats, count(*) from arsi where artnr = '1440'
if that count(*) is > 1 I want to break that cursor loop and fetch the
next row into the cursor and continue.
however if that count(*) > 5 I need to exit the entire procedure and
not try and fetch the next row into the cursor
I find this hard to explain and the code is long and complicated so I
hope it is possible to understand what I am after
rgds
Matt