Monday, March 16, 2009

Oracle datatype internal code representation

As it is shown in How can one dump/ examine the exact content of a database column? every datatype in oracle has its internal code. In this example every oracle datatype along with their corresponding internal code is shown.

Datatype                                                                      Code
-------------------------------------- -------
1. VARCHAR2(size [BYTE | CHAR]) 01
2. NVARCHAR2(size) 01
3. NUMBER[(precision [, scale]]) 02
4. LONG 08
5. DATE 12
6. BINARY_FLOAT 21
7. BINARY_DOUBLE 22
8. RAW(size) 23
9. LONG RAW 24
10.ROWID 69
11.CHAR [(size [BYTE | CHAR])] 96
12.NCHAR[(size)] 96
13.CLOB 112
14.NCLOB 112
15.BLOB 113
16.BFILE 114
17.TIMESTAMP [(fractional_seconds)] 180
18.TIMESTAMP [(fractional_seconds)] WITH TIME ZONE 181
19.INTERVAL YEAR [(year_precision)] TO MONTH 182
20.INTERVAL DAY [(day_precision)] TO SECOND [(fractional_seconds)] 183
21.UROWID [(size)] 208
22.TIMESTAMP [(fractional_seconds)] WITH LOCAL TIME ZONE 231

Related Documents
http://arjudba.blogspot.com/2009/12/oracle-object-type-exercises-varray.html
http://arjudba.blogspot.com/2009/12/practice-oracle-joins-examples.html
http://arjudba.blogspot.com/2009/12/oracle-security-practices.html
http://arjudba.blogspot.com/2009/12/exercises-with-oracle-create-table-add.html
http://arjudba.blogspot.com/2009/12/oracle-database-creation-exercises.html
http://arjudba.blogspot.com/2009/12/basic-oracle-sql-exercise.html
http://arjudba.blogspot.com/2009/08/format-model-modifiers-fx-and-fm.html
http://arjudba.blogspot.com/2009/08/number-format-models-in-oracle.html
http://arjudba.blogspot.com/2009/08/format-models-in-oracle.html
http://arjudba.blogspot.com/2009/07/sql-decode.html
http://arjudba.blogspot.com/2009/07/how-to-know-row-of-table-belong-to.html
http://arjudba.blogspot.com/2009/06/how-to-know-which-objects-are-being.html
http://arjudba.blogspot.com/2009/06/ddl-with-wait-option-in-11g.html
http://arjudba.blogspot.com/2009/06/ora-00939-too-many-arguments-when-case.html
http://arjudba.blogspot.com/2009/03/oracle-datatype-internal-code.html
http://arjudba.blogspot.com/2009/03/how-to-know-list-of-constraints-and.html
http://arjudba.blogspot.com/2009/02/how-to-know-dependent-objectswhich.html
http://arjudba.blogspot.com/2009/02/how-to-search-stringkey-value-from.html
http://arjudba.blogspot.com/2009/02/how-to-know-when-tableobjects-ddlcode.html
http://arjudba.blogspot.com/2009/02/ora-00920-invalid-relational-operator.html
http://arjudba.blogspot.com/2009/01/adding-default-value-to-column-on-table.html
http://arjudba.blogspot.com/2009/01/ora-12838-cannot-readmodify-object.html
http://arjudba.blogspot.com/2009/01/ora-01779-cannot-modify-column-which.html
http://arjudba.blogspot.com/2009/01/updating-table-based-on-another-table.html
http://arjudba.blogspot.com/2009/01/ora-00054-resource-busy-and-acquire.html
http://arjudba.blogspot.com/2008/12/troubleshoot-ora-02292-ora-02449-and.html

No comments:

Post a Comment