Oracle9i SQL Reference
Release 1 (9.0.1)

Part Number A90125-01
Go To Documentation Library
Home
Go To Product List
Book List
Go To Table Of Contents
Contents
Go To Index
Index

Master Index

Feedback

Go to previous page Go to beginning of chapter Go to next page

Expressions, 7 of 14


Datetime Expressions

A datetime expression yields a value of one of the datetime datatypes.

datetime_expression::=


Text description of expressions12a.gif follows
Text description of datetime_expression

A datetime_value_expression can be a datetime column or a compound expression that yields a datetime value. Datetimes and intervals can be combined according to the rules defined in Table 2-2. The three combinations that yield datetime values are valid in a datetime expression.

For example, you can add an interval_value_expression to a start_time. Consider a table SCHEDULE with a column START_TIME. The following statement adds 1 year 2 months to the value of the START_TIME column:

SELECT start_time + INTERVAL '1-2' YEAR TO MONTH FROM schedule;

If you specify AT LOCAL, Oracle uses the current session time zone.

The settings for AT TIME ZONE are interpreted as follows:


Go to previous page Go to beginning of chapter Go to next page
Oracle
Copyright © 1996-2001, Oracle Corporation.

All Rights Reserved.
Go To Documentation Library
Home
Go To Product List
Book List
Go To Table Of Contents
Contents
Go To Index
Index

Master Index

Feedback