Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Stored procedure Question
Lance,
As far as Excel workbooks are concerned, you can create any kind of tab-delimited file, name the file something.xls, and you can directly open it via excel.
So, in your case, you could do something like:
set head off
set serveroutput on
set out.xls
declare
in_param number; out_param1 number; out_param2 number;
begin
call_your_procedure(in_param,out_param1,out_param2);
dbms_output.put_Line(out_param1||chr(9)||out_param2);
end;
/
spool off
The above would create a file named out.xls with two columns populated. You could easily extend this for more output/records.
Hope this helps
Tom Mercadante
Oracle Certified Professional
-----Original Message-----
Sent: Friday, February 01, 2002 11:35 AM
To: Multiple recipients of list ORACLE-L
All,
Currently I run a stored procedure and manually take the results and save them to a xls file. I have few questions:
Thank you in advance
Lance
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Lance Prais
INET: lprais_at_ts.checkpoint.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).
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 Feb 01 2002 - 12:25:42 CST
![]() |
![]() |