Home » SQL & PL/SQL » SQL & PL/SQL » Will Procedure compile
Will Procedure compile [message #623459] Wed, 10 September 2014 06:42 Go to next message
aaditya321
Messages: 225
Registered: January 2014
Location: Delhi
Senior Member
Hi Guys,

Please let me know that given procedure will be compile or not if not compile then why.
create procedure p2
as
begin
 null;
end;
/



create procedure p1()
as
 val varchar2(20);
begin
  select p2() into val from table_name;
end p1;
/
Re: Will Procedure compile [message #623460 is a reply to message #623459] Wed, 10 September 2014 06:48 Go to previous messageGo to next message
Littlefoot
Messages: 21808
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
SQL*Plus won't bite you. Therefore, run that code in there. Oracle will tell you everything you want to know.

(Shortly: code you wrote is full of errors).
Re: Will Procedure compile [message #623469 is a reply to message #623459] Wed, 10 September 2014 07:36 Go to previous message
EdStevens
Messages: 1376
Registered: September 2013
Senior Member
What does YOUR OWN testing reveal?

Please, please explain why you simply don't test for yourself ..
Previous Topic: Replace strings before certain characters
Next Topic: Removing Junk Characters
Goto Forum:
  


Current Time: Thu Apr 25 04:02:45 CDT 2024