Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PL/SQL %NOTFOUND?

Status
Not open for further replies.

ThatRickGuy

Programmer
Oct 12, 2001
3,841
US
Just wondering if anyone else has run into this...

I was having a heck of a time getting a PL/SQL statment to work it had a loop in it using the following statement for it's exit:

EXIT WHEN update_cursor %NOTFOUND;

Now, this seems to make rather good sence. BUT, it never worked right. My code would always exit the loop. So, I broke down and RTFB. If this book is right, then the system variable %NOTFOUND returns TRUE if the is a record found, and FALSE if there is no record found. Am I on crack? or did someone make a little error in their naming conventions?

-Rick
 
A quick update. %NOTFOUND is correctly designed so that it returns TRUE if nothing is found and FALSE if anything is returned, the problem wound up being in my query. the book "Oracle Desk Reference" by Guy Harrison has a typo. (Never trust a man named Guy)

-Rick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top