Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Timestamp vs. Date Datatype
Enrique
>Using timestamp instead of date makes us to waste
>12 bytes per field (indexes and data). All the DB
>operations I/O, .... are much more efficient with
>date fields.
When you store a timestamp you can specify its precision...
SQL> CREATE TABLE t (d DATE, t TIMESTAMP(0));
SQL> INSERT INTO t VALUES (sysdate, localtimestamp);
SQL> SELECT dump(d), dump(t) FROM t;
DUMP(D)
HTH
Chris
New Features Oracle Database 10g Release 2 seminars @ www.trivadis.com
Italiano: Lugano (24-Nov) Français: Genève (17-Nov) Deutsch: Hamburg (13-Oct), München (20-Oct), Basel (25-Oct), Frankfurt (27-Oct), Bern (8-Nov), Düsseldorf (23-Nov), Zürich (29-Nov), Stuttgart (13-Dec)
-- http://www.freelists.org/webpage/oracle-lReceived on Wed Oct 05 2005 - 09:56:34 CDT
![]() |
![]() |