sqlplus中利用spool生成带日期的文件名

col v_filename new_value v_filename noprint
Select to_char(sysdate,'yyyymmdd')||'.txt' v_filename from dual;
spool e:&v_filename;
select * from dual;
spool off;

猜你喜欢

转载自blog.csdn.net/maenlai0086/article/details/81389480