Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.tools -> Re: using SPOOL in sqlplus
column sdate new_value sdate
select 'f' || to_char( sysdate, 'yymmddhhmiss') || '.lst' sdate from dual;
spool &sdate
You may also want to "set termout off" before the select, and "set termout on" afterwards.
<froliol_at_my-deja.com> wrote in message news:8rdeq3$c92$1_at_nnrp1.deja.com...
> Greetings All, I want to be able to create a dynamic output file name
> based on current date and time. Using spool I cannot seem to pass a
> name for an output file, I can only explicitly state it? Has anyone
> ever passed a variable name to spool as the output file?
>
> Any help would be greatly appreciated.
>
> L
>
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.
Received on Wed Oct 04 2000 - 16:47:18 CDT
![]() |
![]() |