MySQL Forums
Forum List  »  Stored Procedures

Raising Exceptions etc
Posted by: Philip Stevenson
Date: January 05, 2006 03:53AM

Hi,
how do you handle exceptions & exceptions in stored procedures/functions. Also can you user define exceptions and raise the user define exception.

I have included some oracle code, thanks in advance for any help

regards
phil


eg Oracle Code

declare
l_x number;

begin

select x into l_x
from abc

exception
when no_data_found then

insert into debug
select
'no_data_found'
,'this is an exception'
from dual;

commit;

raise;
end;

,

Options: ReplyQuote


Subject
Views
Written By
Posted
Raising Exceptions etc
2206
January 05, 2006 03:53AM
1790
January 05, 2006 12:26PM
2092
January 05, 2006 10:02PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.