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!

WHAT is the purpose of RAISE in an EXCEPTION clause ?

pstein-JavaNetMay 20 2007 — edited Aug 5 2007
I have seen PL-SQL statements with EXCEPTION clause which contain a RAISE and other where the RAISE was omitted. E.g.

CREATE OR REPLACE FUNCTION my_func (...) RETURN ....
AS
retval .....
BEGIN
.....
RETURN retvaL;
EXCEPTION
WHEN NO_DATA_FOUND THEN
...
WHEN TOO_MANY_ROWS THEN
...
RAISE;
END;
/

What is the purpose of RAISE?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 2 2007
Added on May 20 2007
10 comments
919 views