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: Stored Proc returns dataset - how to see results in SQL+?

Re: Stored Proc returns dataset - how to see results in SQL+?

From: G Quesnel <dbaguy_ott_at_yahoo.com>
Date: 7 Apr 2006 12:16:04 -0700
Message-ID: <1144437364.219366.232610@u72g2000cwu.googlegroups.com>


There are a number of solutions provided in this newgroups... just do a search under "refcursor begin select print".

The following example from Mark C Stock... posted last week ! (just when I needed to figure out how to do it myself :)

var rc refcursor
SQL> begin
  2 open :rc for 'select * from all_users';   3 end;
  4 /

 print rc Received on Fri Apr 07 2006 - 14:16:04 CDT

Original text of this message

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