Depending on their histories, different SQL implementations support a variety of data types. The SQL specification recognizes nine predefined general types, shown in the lists below.
Exact Numerics:
-
INTEGER
-
SMALLINT
-
BIGINT
-
NUMERIC
-
DECIMAL
- DECFLOAT
-
REAL
-
DOUBLE PRECISION
-
FLOAT
-
BOOLEAN
-
CHARACTER (CHAR)
-
CHARACTER VARYING (VARCHAR)
-
NATIONAL CHARACTER (NCHAR)
-
NATIONAL CHARACTER VARYING (NVARCHAR)
-
DATE
-
TIME
-
TIMESTAMP
-
TIME WITH TIMEZONE
-
TIMESTAMP WITH TIMEZONE
-
INTERVAL DAY
-
INTERVAL YEAR
-
BLOB
-
CLOB
-
ARRAY
-
MULTISET
-
ROW
-
XML