ANSI SQL Datatype | Oracle Datatype |
CHARACTER (n), CHAR(n) | CHAR(n) |
NUMERIC (p, s), DECIMAL (p, s) DEC (p, a) | NUMBER (p, s) |
INTEGER, INT, SMALLINT | NUMBER (38) |
FLOAT (p), REAL, DOUBLE PRECISION | NUMBER |
CHARACTER VARYING(n), CHAR VARYING(n) | VARCHAR(n) |
DB2 or SQL/DS Datatype | Oracle Datatype |
CHARACTER (n) | CHAR(n) |
VARCHAR (n) | VARCHAR2 (n) |
LONG VARCHAR | LONG |
DECIMAL (p, s) | NUMBER (p, s) |
INTEGER, SMALLINT | NUMBER (38) |
FLOAT (p) | NUMBER |
DATE | DATE |
The ANSI datatypes NUMERIC, DECIMAL, and DEC can specify only fixed-point numbers. For these datatypes, s defaults to 0.