Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: Unreadable time_stamp format
Now that's great! Here is my contribution, pasted directly from
SQL Reference:
TIMESTAMP (fractional_seconds_precision)
Year, month, and day values of date, as well as hour, minute, and second values of time, where fractional_seconds_precision is the number of digits in the fractional part of the SECOND datetime field. Accepted values of fractional_seconds_precision are 0 to 9. The default is 6.
Essentially, you know now how many microseconds have passed since 1.1.1970. and that is the information that not many human beings posses. It changes about 1 million times every second.
On 12/16/2003 05:09:25 PM, "Nguyen, David M" wrote:
> Now I got.
>
>
>
> USER_NAME TIME STAMP
>
> -------------------- ----------------------
>
> eholley 1069716948959
>
> jmdavis 1069715246467
>
> jmdavis 1069715324466
>
>
>
>
>
> -----Original Message-----
> Bobak, Mark
> Sent: Tuesday, December 16, 2003 3:54 PM
> To: Multiple recipients of list ORACLE-L
>
>
>
> Since it's a NUMBER datatype, try:
>
> SQL> column time_stamp format 99999999999999999999
>
> SQL> select user_name, time_stamp from USER_ACTIVITY_LOG;
>
>
>
> -----Original Message-----
> From: Nguyen, David M [mailto:david.m.nguyen_at_xo.com]
> Sent: Tuesday, December 16, 2003 4:39 PM
> To: Multiple recipients of list ORACLE-L
> Subject: Unreadable time_stamp format
>
> I need to view time_stamp column in USER_ACTIVITY_LOG table but
> it displays unreadable format as shown below. Is there a way to decode
> it to be readable?
>
> 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, time_stamp from USER_ACTIVITY_LOG;
>
> edscott 1.0693E+12
>
> edscott 1.0693E+12
>
> edscott 1.0693E+12
>
> edscott 1.0693E+12
>
> jmdavis 1.0693E+12
>
> edscott 1.0693E+12
>
> edscott 1.0693E+12
>
> Thanks,
> David
>
>
Mladen Gogala
Oracle DBA
-- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Mladen Gogala INET: mladen_at_wangtrading.com Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services --------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).Received on Tue Dec 16 2003 - 16:29:25 CST