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

Home -> Community -> Usenet -> c.d.o.misc -> Re: beginner: cursors

Re: beginner: cursors

From: matt <reflection77_at_gmail.com>
Date: 10 Apr 2007 10:10:22 -0700
Message-ID: <1176225022.449847.289140@y5g2000hsa.googlegroups.com>


On Apr 10, 9:58 am, "matt" <reflectio..._at_gmail.com> wrote:
> On Apr 10, 1:41 am, "dombrooks" <dombro..._at_hotmail.com> wrote:
>
> > Replace 'DECLARE' with 'CREATE OR REPLACE PROCEDURE <your_proc_name>
> > AS'
> > and you're pretty much done.
>
> I attempted to do this and receive a Procedure Created with
> Compilation Errors.
>
> Here is what I altered from the initial post above:
>
> CREATE OR REPLACE PROCEDURE sp_seniority(
> name OUT empbb02.ename%TYPE,
> seniority OUT number,
> TYPE cursor_var IS REF CURSOR,
> myCursorVar OUT cursor_var;) AS

--> name_list empbb02.ename%type,
--> seniority_list number;

> BEGIN
>
> Does that TYPE cursor_var also need to be specified as an OUT?

correction...yet the same result. Received on Tue Apr 10 2007 - 12:10:22 CDT

Original text of this message

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