Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: How to create stored procedure in SQLplus?

Re: How to create stored procedure in SQLplus?

From: Connor McDonald <connor_mcdonald_at_yahoo.com>
Date: Thu, 01 May 2003 22:49:55 +0800
Message-ID: <3EB13413.7009@yahoo.com>


Rookie wrote:
>
> Hi could some one show me how to create stored procedure in SQLplus, thx?
> either with param or without param. thanks in advance

SQL> create or replace procedure do_nothing is  2 begin
 3 null;
 4 end;
 5 /

SQL> create or replace procedure do_nothing(p_param in number) is  2 x number;
 3 begin
 4 x := p_param;
 5 end;
 6 /

hth
connor

-- 
=========================
Connor McDonald
http://www.oracledba.co.uk

"Some days you're the pigeon, some days you're the statue"
Received on Thu May 01 2003 - 09:49:55 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US