Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.tools -> Date format in SQL*plus limited to 9 characters??!!
I'm using Oracle 8 SQL*plus on NT4
A simple "select sysdate from dual" correctly produces:
SYSDATE
I then change the date format with "alter session set nls_date_format = 'dd-mon-yyyy'"
"Select sysdate from dual" produces:
SYSDATE
The last 2 characters have been truncated.
I then try a column format command "column mydate format a14"
"select sysdate mydate from dual" results in:
MYDATE
The column header has changed to 14 characters but the date is still limited to 9 characters.
I've used other versions of SQL*plus and have no problem...... I can display date/times like '20-Dec_2000 19:57' . It looks like some system default is constraining my current version of SQL*plus.
Any idea how I fix this? It must be trivial!
-- Regards, AlanReceived on Tue Jan 09 2001 - 06:53:25 CST