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: HELP! ORACLE Stored Procedures and multiple rows

Re: HELP! ORACLE Stored Procedures and multiple rows

From: Mark Tomlinson <marktoml_at_gdi.net>
Date: Fri, 05 Jun 1998 11:42:41 GMT
Message-ID: <357bd705.52711605@newshost.us.oracle.com>

In Oracle that is done thusly in PL/SQL

PL/SQL Code

create or replace package reftest as  cursor c1 is select ename from emp;
 type empCur is ref cursor return c1%ROWTYPE;  procedure GetEmpData(EmpCursor in out empCur ); END; create or replace package body reftest as

   procedure GetEmpData(EmpCursor in out empCur) is begin
  open EmpCursor for select ename from emp; end;
end; Received on Fri Jun 05 1998 - 06:42:41 CDT

Original text of this message

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