Oracle date output including full year, month, day, hours, minutes and seconds:
SQL> alter session set nls_date_format = 'yyyy-mm-dd hh24:mi:ss';
SQL> alter session set nls_timestamp_format = 'yyyy-mm-dd hh24:mi:ss';
SQL> select foo_date from bar_table where rownum <= 1;
FOO_DATE
-------------------
2012-01-01 01:02:03
No comments:
Post a Comment