Professional Documents
Culture Documents
Oracle/PLSQL: Data Types: Character Datatypes
Oracle/PLSQL: Data Types: Character Datatypes
Oracle/PLSQL: Data Types: Character Datatypes
Character Datatypes
Numeric Datatypes
Date/Time Datatypes
For example:
timestamp(4) with local time
zone
interval year year precision is the year precision is the year precision is the Time period stored in years and
(year precision) number of digits in the year. number of digits in the year. number of digits in the year. months.
to month (default is 2) (default is 2) (default is 2)
For example:
interval year(4) to month
interval day day precision must be a day precision must be a day precision must be a Time period stored in days,
(day precision) number between 0 and 9. number between 0 and 9. number between 0 and 9. hours, minutes, and seconds.
to second (fractional (default is 2) (default is 2) (default is 2)
seconds precision)
For example:
fractional seconds fractional seconds fractional seconds interval day(2) to second(6)
precision must be a number precision must be a number precision must be a number
between 0 and 9. (default is between 0 and 9. (default is between 0 and 9. (default is
6) 6) 6)
Rowid Datatypes
Data Type Oracle 9i Oracle 10g Oracle 11g Explanation
Syntax (if applicable)
rowid The format of the rowid is: The format of the rowid is: The format of the rowid is: Fixed-length binary data.
BBBBBBB.RRRR.FFFFF BBBBBBB.RRRR.FFFFF BBBBBBB.RRRR.FFFFF Every record in the database
has a physical address
or rowid.
Where BBBBBBB is the block Where BBBBBBB is the block Where BBBBBBB is the block
in the database file; in the database file; in the database file;
RRRR is the row in the block; RRRR is the row in the block; RRRR is the row in the block;
FFFFF is the database file. FFFFF is the database file. FFFFF is the database file.
urowid(size) Universal rowid.
Where size is optional.