Home » SQL & PL/SQL » SQL & PL/SQL » RAISE_APPLICATION_ERROR
RAISE_APPLICATION_ERROR [message #40795] Thu, 07 November 2002 02:30 Go to next message
ray park
Messages: 7
Registered: September 2002
Junior Member
I have an error for the following piece of code.

i am trying to raise an expectation with the following code.

however when it comes to compile the code oracle says that i have to declare the RAISE_APPLICATION_ERROR. i have looked in books however they say that i am doing it right.

if (:cwk_mark >=0) then
RAISE_APPLICATION_ERROR(-20100,'No');
end if;

any help would be grautfully welcomed
Re: RAISE_APPLICATION_ERROR [message #40832 is a reply to message #40795] Thu, 07 November 2002 09:29 Go to previous messageGo to next message
Todd Barry
Messages: 4819
Registered: August 2001
Senior Member
Your code snippet looks fine - no idea why you would get that error on compiling.

What happens if you run this in SQL*Plus?

exec raise_application_error(-20000, 'Test')
Re: RAISE_APPLICATION_ERROR [message #41445 is a reply to message #40795] Sat, 04 January 2003 00:09 Go to previous message
Chandra Shekhar J
Messages: 2
Registered: January 2003
Junior Member
Hi

from which object this error is raised...?
and what is :cwk_mark .....?
if it is from Database trigger then it should be like :new.cwk_mark

Pl let me know
regards
JC
Previous Topic: Need help with 'Where's on Update
Next Topic: Find & Replace
Goto Forum:
  


Current Time: Sun Jun 09 16:39:34 CDT 2024