Skip to Main Content

Oracle Database Discussions

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!

Want to ignore exception in a begin-end block

552969Dec 10 2008 — edited Dec 13 2008
Hi,

For a given plsql block (inside a procedure or function for example) I want to ignore a certain oracle exception. Ignore as in, it should not be raised at all.

What I want to do is something like this -

begin (tell somehow to NOT raise NO Data Found (NDF) )

bq. select <something> \\ into <some Variable> \\ from <somewhere>; \\ if sql%rowcount = 0 \\ then \\ +<take action meant for NDF>;+ \\ end if;
end;

Any Ideas ?

cheers
raghav..

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 10 2009
Added on Dec 10 2008
10 comments
6,942 views