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
BIGINT UNSIGNED (ULong)
Supported by ✅ Open Source Edition ✅ Express Edition ✅ Professional Edition ✅ Enterprise Edition
The BIGINT UNSIGNED
data type represents an unsigned, 64 bit integer, or org.jooq.types.ULong
in Java. It has no representation in JDBC.
If unsigned support is unavailable in a dialect, jOOQ will just map the type to the next higher integer type DECIMAL INTEGER (BigInteger).
createTable("t").column("c", BIGINTUNSIGNED)
Translates to the following dialect specific expressions:
Access, SQLDataWarehouse, SQLServer, SQLite, Teradata
CREATE TABLE t ( c numeric )
ASE, Sybase
CREATE TABLE t ( c unsigned bigint NULL )
Aurora MySQL, BigQuery, DB2, Informix, MariaDB, MemSQL, MySQL, Trino
CREATE TABLE t ( c bigint unsigned )
Aurora Postgres, CockroachDB, Derby, Firebird, HSQLDB, Hana, Postgres, Redshift, Vertica, YugabyteDB
CREATE TABLE t ( c decimal )
ClickHouse
CREATE TABLE t ( c Nullable(UInt64) ) ENGINE Log()
Databricks
CREATE TABLE t ( c bigint unsigned ) TBLPROPERTIES( 'delta.columnMapping.mode' = 'name', 'delta.feature.allowColumnDefaults' = 'supported' )
DuckDB
CREATE TABLE t ( c ubigint )
Exasol, H2
CREATE TABLE t ( c number )
Oracle, Snowflake
CREATE TABLE t ( c number(20) )
Generated with jOOQ 3.21. Support in older jOOQ versions may differ. Translate your own SQL on our website
cast(field("c"), BIGINTUNSIGNED)
Translates to the following dialect specific expressions:
Access
cdec(c)
ASE, Sybase
CAST(c AS unsigned bigint)
Aurora MySQL, MariaDB, MemSQL, MySQL
CAST(c AS unsigned)
Aurora Postgres, CockroachDB, HSQLDB, Hana, Postgres, Redshift, Vertica, YugabyteDB
CAST(c AS decimal)
BigQuery, DB2, Databricks, Informix, Trino
CAST(c AS bigint unsigned)
ClickHouse
CAST(c AS Nullable(UInt64))
Derby
CAST(c AS decimal(20))
DuckDB
CAST(c AS ubigint)
Exasol, H2
CAST(c AS number)
Firebird
CAST(c AS varchar(20))
Oracle, Snowflake
CAST(c AS number(20))
SQLDataWarehouse, SQLServer, SQLite, Teradata
CAST(c AS numeric)
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!