Hello.
I have a procedure I've created using TOAD.
I guess it really doesn't matter whether I'm using TOAD or SQL*Plus, though.
What I'd really like to do is to be able to output variable values to a text file in the course of executing a procedure. In this case I have something like:
create or replace procedure SomeProc as
mySQL varchar2(1000);
begin
mySQL:='select blahblahblah';
mySQL:=mySQL||'blahblahblahagain';
mySQL:=mySQL||'yetmoreblahblahstill';
put (put_line??)??(mySQL);
spool 'c:\test.txt'
mySQL;
spool off;
-- don't know what I'm doing at this point, these are just a couple of things I've tried...neither worked at all...don't think you can use spool inside a procedure
end SomeProc;
Any suggestions??
Thanking you in advance.
-Mike
I have a procedure I've created using TOAD.
I guess it really doesn't matter whether I'm using TOAD or SQL*Plus, though.
What I'd really like to do is to be able to output variable values to a text file in the course of executing a procedure. In this case I have something like:
create or replace procedure SomeProc as
mySQL varchar2(1000);
begin
mySQL:='select blahblahblah';
mySQL:=mySQL||'blahblahblahagain';
mySQL:=mySQL||'yetmoreblahblahstill';
put (put_line??)??(mySQL);
spool 'c:\test.txt'
mySQL;
spool off;
-- don't know what I'm doing at this point, these are just a couple of things I've tried...neither worked at all...don't think you can use spool inside a procedure
end SomeProc;
Any suggestions??
Thanking you in advance.
-Mike