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: Returning data from temp_tables

Re: Returning data from temp_tables

From: BGT <bgt0990_at_optonline.net>
Date: Mon, 06 Aug 2007 05:54:43 -0700
Message-ID: <1186404883.188314.210230@d55g2000hsg.googlegroups.com>


I am reading as carefully as possible. Possibly there is something wrong with the package definition but I still get an error trying to open this NESTED cursor the way you say should work.

CREATE OR REPLACE PACKAGE PKG_DASHBOARD AS   TYPE ref_cur is ref cursor RETURN result_master%ROWTYPE; -- won't take SYS_REFCURSOR
  Procedure list_mailable(MAILLIST OUT ref_cur);

END PKG_DASHBOARD;
/

CREATE OR REPLACE PACKAGE BODY PKG_DASHBOARD AS PROCEDURE list_mailable(maillist OUT ref_cur) IS

   OPEN maillist FOR 'SELECT * FROM result_master A WHERE labno = :1 and a.labno in(select labno from sample_demog_master where link in(select link

    from sample_demog_master where labno=link))' USING c1rec;     LOOP
    FETCH maillist INTO c3rec;
    EXIT WHEN maillist%NOTFOUND;

PLS-00455: cursor 'MAILLIST' cannot be used in dynamic SQL OPEN statement Received on Mon Aug 06 2007 - 07:54:43 CDT

Original text of this message

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