Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: how to store timestamp in oracle 8.1.7?
> You cannot as a DATE datatype. Either you store it as a
> VARCHAR2/NUMBER or goto Oracle 9i which has a TIMESTAMP support.
>
> To generate a TIMESTAMP in 8.1.7 and store it as a VARCHAR2, Use
> java.sql.Timestamp interface via Oracle's Java cartridge.
Huh?????
The major difference between DATE and TIMESTAMP is that DATE stores day and time with a precision to the second. TIMESTAMP will let you store a much finer precision, i.e. fractions of a second (along with the date).
Why use VARCHAR2 and/or NUMBER to store dates and times? It's just too much work. And then you want to throw Java into the equation?!?!?
Cheers,
Brian
Received on Thu Sep 26 2002 - 13:12:47 CDT