Skip to Main Content
Oracle in a Nutshell
book

Oracle in a Nutshell

by Rick Greenwald, David C. Kreines
December 2002
Intermediate to advanced content levelIntermediate to advanced
928 pages
85h 29m
English
O'Reilly Media, Inc.
Content preview from Oracle in a Nutshell

TIMESTAMP datatypes

There are three new TIMESTAMP datatypes in Oracle9i:

TIMESTAMP

An extension of the DATE datatype that includes year, month, day, hour, minute, and second values with the following syntax:

TIMESTAMP [(fractional_second_precision)]

where fractional_second_precision specifies the number of digits in the fractional portion of the seconds, from 0 to 9, with a default of 2.

TIMESTAMP WITH TIMEZONE

A variant of TIMESTAMP than includes a time zone displacement from UTC (Coordinated Universal Time, which is essentially Greenwich Mean Time). The syntax for this datatype is:

TIMESTAMP [(fractional_second_precision)] WITH TIMEZONE
TIMESTAMP WITH LOCAL TIME ZONE

Similar to TIMESTAMP WITH TIMEZONE, but the time is normalized to the local time zone for the database, and the displacement from UTC is not stored as part of the column data. The syntax for this datatype is:

TIMESTAMP [(fractional_second_precision)] WITH LOCAL TIMEZONE
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Oracle Internals

Oracle Internals

Donald K. Burleson
Oracle PL/SQL

Oracle PL/SQL

Lewis Cunningham
Oracle Essentials: Oracle9i, Oracle8i and Oracle8, Second Edition

Oracle Essentials: Oracle9i, Oracle8i and Oracle8, Second Edition

Rick Greenwald, Robert Stackowiak, Jonathan Stern

Publisher Resources

ISBN: 0596003366Errata Page