Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how to run the cursor loop once even if it is true for many times - urgent

536807Oct 10 2006 — edited Oct 10 2006
Hi,

Say

loop
tdate='12-JAN-2005'
loop
cursor.......
if '10-JAN-2005'<=tdate then
fetch

...
..
end loop

tdate=tdate+1 month

end loop;


in the above query i want my cursor to run the loop only once at the first true of my condition....in the second run the tdate will be = '12-FEB-2005'....but my cursor loop should not go in..it has to comeout....


how to do this....plz help very urgent
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 7 2006
Added on Oct 10 2006
16 comments
1,116 views