March 2000
Beginner
464 pages
9h 17m
English
Each implementation has a default storage format for the date and time. This default storage often varies among different implementations, as do other data types for each implementation. The following sections begin by reviewing the standard format of the DATETIME data type and its elements. Then you see the data types for date and time in some popular implementations of SQL, including Oracle, Sybase, and Microsoft SQL Server.
There are three standard SQL data types for date and time (DATETIME) storage:
| Data Type | Usage |
|---|---|
| DATE | Stores date literals |
| TIME | Stores time literals |
| TIMESTAMP | Stores date and time literals |
Format and range of valid values for each data type:
| DATE |
|---|
| Format: YYYY-MM-DD |
| Range: ... |
Read now
Unlock full access