Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: dynamic filename creation
column dummy new_value fil
select 'ap'||to_char(sydate,'MMDDYY')||'.txt' dummy
from dual;
spool &fil
This should be all.
Never say you can't do it with sql*plus!
Hth,
Sybrand Bakker, Oracle DBA
<HNG_at_SFNA.com> wrote in message news:7o5cq4$g3n$1_at_nnrp1.deja.com...
> Hi,
>
> I'm just trying to create a sqlPLUS procedure to spool output to a
> variable-named PC file (example, apMMDDYY.txt), where MMDDYY is the date
> portion of an input variable).
>
> Thanks in advance.
>
>
> Sent via Deja.com http://www.deja.com/
> Share what you know. Learn what you don't.
Received on Tue Aug 03 1999 - 00:02:18 CDT