++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
* USE : _DATE - Contains the current date or a user defined fixed string.
Please see below Example:
Enter value for schema: TEST
SQL> select name from v$database;
NAME
---------
XE
SQL> spool off;
Log File Genarated > TEST_cc_update_23-JAN-15.txt
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- ANOTHER WAY -
EXAMPLE:
SQL> col dcol new_value mydate noprint
SQL> select to_char(sysdate,'YYYY-MM-DD') dcol from dual;
SQL> spool &mydate._MY_SPOOL_FILENAME
SQL> select name from v$database;
NAME
---------
XE
SQL> spool off;
Log File Genarated: 2015-01-23_MY_SPOOL_FILENAME
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comments
Post a Comment