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 -> Procedure to show and spool all the results

Procedure to show and spool all the results

From: <jackfung188_at_gmail.com>
Date: 22 Mar 2005 12:57:55 -0800
Message-ID: <1111525075.804487.259980@z14g2000cwz.googlegroups.com>


Hi All,

I want to write a procedure which is able to spool all the select statement into a text file.

eg. the result I want in the spool file:

select * from customer where customer_id=xx;
select * from order where customer_id=xx;
select * from product where product_id=yy;

The procedure should allows me to put the xx and yy value when i execute the procedure. I heard it's impossible to do unless using ref cursor? If so, how can I do it?

Thanks. Received on Tue Mar 22 2005 - 14:57:55 CST

Original text of this message

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