My fault! I went back to the original code example and it does select = into a variable. Your example would be more appropriate for the situation described. Anu was right also! > -----Original Message----- > From: oracle-l-bounce@xxxxxxxxxxxxx > [mailto:oracle-l-bounce@xxxxxxxxxxxxx]On Behalf Of Davey, Alan > Sent: Friday, April 30, 2004 12:20 PM > To: 'oracle-l@xxxxxxxxxxxxx' > Subject: RE: a pl/sql question >=20 >=20 > Hi Donald, >=20 > My example was only meant to show that sql%notfound would=20 > never be hit. One > of these days I'll learn to add comments to my code ;-) >=20 ---------------------------------------------------------------- Please see the official ORACLE-L FAQ: http://www.orafaq.com ---------------------------------------------------------------- To unsubscribe send email to: oracle-l-request@xxxxxxxxxxxxx put 'unsubscribe' in the subject line. -- Archives are at //www.freelists.org/archives/oracle-l/ FAQ is at //www.freelists.org/help/fom-serve/cache/1.html -----------------------------------------------------------------