David,
It's not a date column. Rather it's a number column that's reading as scientific notation. Some databases, like Access, actually store dates as numbers; however, AFAIK Oracle does not.
Those are some large numbers. 1.0397E+12 = 1039700000000
You could change your SQL to add
COLUMN TIME_STAMP FORMAT A15
just before it to widen things out some.
Jerry Whittle
ASIFICS DBA
NCI Information Systems Inc.
[EMAIL PROTECTED]
618-622-4145
-----Original Message-----
From: Nguyen, David M [SMTP:[EMAIL PROTECTED]
I try to query a report to check user activity but I could not read date column.� Is there a way to reformat the column to be readable?� Date colum calls "time_stamp" as shown below.
SQL> desc user_activity_log��������������������������������������
�Name������������������������������������� Null?��� Type���������
�----------------------------------------- -------- --------------
�TIME_STAMP������������������������������� NOT NULL NUMBER(20)���
�NODE_NAME�������������������������������� NOT NULL VARCHAR2(20)�
�USER_NAME�������������������������������� NOT NULL VARCHAR2(20)�
�CLIENT_IP�������������������������������� NOT NULL VARCHAR2(15)�
�DESCRIPTION������������������������������ NOT NULL VARCHAR2(2048)
SQL> select user_name,client_ip,node_name,time_stamp from user_activity_log
���� where user_name = 'admin'
���� order by time_stamp;
USER_NAME����������� CLIENT_IP������ NODE_NAME����������� TIME_STAMP
-------------------- --------------- -------------------- ----------
admin��������������� NA������������� Insight Server������ 1.0397E+12
admin��������������� NA������������� Insight Server������ 1.0402E+12
admin��������������� NA������������� Insight Server������ 1.0433E+12
�
