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

Home -> Community -> Mailing Lists -> Oracle-L -> Re: PL/SQL cursor declaration

Re: PL/SQL cursor declaration

From: <Chaim.Katz_at_Completions.Bombardier.com>
Date: Fri, 01 Jun 2001 12:32:35 -0700
Message-ID: <F001.00318770.20010601122232@fatcity.com>

David,
 You need a cusor variable to pass a result set. Something like this:

  DECLARE
   TYPE EmpCurTyp IS REF CURSOR RETURN emp%ROWTYPE;    PROCEDURE open_emp_cv (emp_cv IN OUT EmpCurTyp) IS ...

Hth..

"Bartolo, David" <bartolo_at_USCOLO.edu> on 06/01/2001 02:11:29 PM

Please respond to ORACLE-L_at_fatcity.com

To: Multiple recipients of list ORACLE-L <ORACLE-L_at_fatcity.com> cc: (bcc: Chaim Katz/Completions/Bombardier)

Hi all,

I am getting a PLS-320 the declaration of the type of this expression is incomplete or malformed.
This is ORACLE V7, PL/SQL V2.1.4. I know I am missing something but I can't see it.

The select should return multiple rows to be passed into a web page.

Thank in Advance
David

Here is the code.

create or replace PACKAGE COURSE.COURSE_BULLETIN is

     CURSOR C1 (i_ccyy IN NUMBER) is
        select call_no, schl_cd, dept_cd
        from course.cmcmcrst
        where ccyy = i_ccyy
        and term_cd = '2'
        and instrl_cd = '0';

    procedure COURSE_SELECT(i_ccyy IN NUMBER, rsCur IN OUT C1);

end;

create or replace PACKAGE BODY COURSE.COURSE_BULLETIN is

    procedure COURSE_SELECT(i_ccyy IN NUMBER, rsCur IN OUT C1)     begin

        open rsCur (i_ccyy);
    end;

end;

--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Bartolo, David
  INET: bartolo_at_USCOLO.edu

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L

(or the name of mailing list you want to be removed from). You may
also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: INET: Chaim.Katz_at_Completions.Bombardier.com Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from). You may
also send the HELP command for other information (like subscribing).
Received on Fri Jun 01 2001 - 14:32:35 CDT

Original text of this message

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