Home » SQL & PL/SQL » SQL & PL/SQL » Can you format a date in milliseconds?
Can you format a date in milliseconds? [message #20699] Fri, 14 June 2002 07:27 Go to next message
Muthu Ganapathy
Messages: 1
Registered: June 2002
Junior Member
Can we format a date in milliseconds? If possible, please let me know how to get the result? I would appreciate your help.

Thanks.
Re: Can you format a date in milliseconds? [message #20701 is a reply to message #20699] Fri, 14 June 2002 08:19 Go to previous message
Mahesh Rajendran
Messages: 10707
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
I beleive, with 8i you cannot store Milliseconds in date column. you need to have a varchar2 column. And the standard workaround is to use a JavaStoredProcedure.

anyhow with 9i it is just native.
SQL> ed
Wrote file afiedt.buf

  1* create table tstamp ( t timestamp(1))
SQL> /

Table created.

SQL> ed
Wrote file afiedt.buf

  1* insert into tstamp values (TIMESTAMP'2002-06-14 15:50:30.1')
SQL> /

1 row created.

SQL> select * from tstamp;
T
---------------------------------------------------------------------------
14-JUN-02 03.50.30.1 PM
Previous Topic: Printing Title on the report
Next Topic: date
Goto Forum:
  


Current Time: Tue Apr 23 15:26:37 CDT 2024