Available in versions: Dev (3.21) | Latest (3.20) | 3.19 | 3.18 | 3.17 | 3.16 | 3.15 | 3.14 | 3.13 | 3.12 | 3.11
INTEGER (Integer)
Supported by ✅ Open Source Edition ✅ Express Edition ✅ Professional Edition ✅ Enterprise Edition
The INTEGER data type represents a signed, 32 bit integer, or java.lang.Integer in Java, or Types.INTEGER in JDBC
DDL support
Dialect support
This example using jOOQ:
createTable("t").column("c", INTEGER)
Translates to the following dialect specific expressions:
Access, DB2, Firebird, Hana, Informix, Teradata
CREATE TABLE t ( c integer )
ASE, Sybase
CREATE TABLE t ( c int NULL )
Aurora MySQL, Aurora Postgres, DuckDB, Exasol, H2, HSQLDB, MariaDB, MemSQL, MySQL, Postgres, Redshift, SQLDataWarehouse, SQLServer, SQLite, Trino, Vertica, YugabyteDB
CREATE TABLE t ( c int )
BigQuery, Spanner
CREATE TABLE t ( c int64 )
ClickHouse
CREATE TABLE t ( c Nullable(integer) ) ENGINE Log()
CockroachDB
CREATE TABLE t ( c int4 )
Databricks
CREATE TABLE t ( c int ) TBLPROPERTIES( 'delta.columnMapping.mode' = 'name', 'delta.feature.allowColumnDefaults' = 'supported' )
Oracle, Snowflake
CREATE TABLE t ( c number(10) )
Generated with jOOQ 3.21. Support in older jOOQ versions may differ. Translate your own SQL on our website
cast(field("c"), INTEGER)
Translates to the following dialect specific expressions:
Access
clng(c)
ASE, Aurora Postgres, Databricks, DuckDB, Exasol, H2, HSQLDB, Postgres, Redshift, SQLDataWarehouse, SQLServer, SQLite, Sybase, Trino, Vertica, YugabyteDB
CAST(c AS int)
Aurora MySQL, MariaDB, MemSQL, MySQL
CAST(c AS signed)
BigQuery, Spanner
CAST(c AS int64)
ClickHouse
CAST(c AS Nullable(integer))
CockroachDB
CAST(c AS int4)
DB2, Firebird, Hana, Informix, Teradata
CAST(c AS integer)
Oracle, Snowflake
CAST(c AS number(10))
Generated with jOOQ 3.21. Support in older jOOQ versions may differ. Translate your own SQL on our website
Feedback
Do you have any feedback about this page? We'd love to hear it!