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

This documentation is for the unreleased development version of jOOQ. Click on the above version links to get this documentation for a supported version of jOOQ.

INTEGER UNSIGNED (UInteger)

Supported by ✅ Open Source Edition   ✅ Express Edition   ✅ Professional Edition   ✅ Enterprise Edition

The INTEGER UNSIGNED data type represents an unsigned, 32 bit integer, or org.jooq.types.UInteger 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 BIGINT UNSIGNED (ULong).

DDL support

Dialect support

This example using jOOQ:

createTable("t").column("c", INTEGERUNSIGNED)

Translates to the following dialect specific expressions:

Access

CREATE TABLE t (
  c numeric
)

ASE, Sybase

CREATE TABLE t (
  c unsigned int NULL
)

Aurora MySQL, MariaDB, MemSQL, MySQL

CREATE TABLE t (
  c int unsigned
)

Aurora Postgres, CockroachDB, Derby, Exasol, Firebird, H2, HSQLDB, Hana, Postgres, Redshift, SQLDataWarehouse, SQLServer, SQLite, Teradata, Vertica, YugabyteDB

CREATE TABLE t (
  c bigint
)

BigQuery, DB2, Informix, Trino

CREATE TABLE t (
  c integer unsigned
)

ClickHouse

CREATE TABLE t (
  c Nullable(UInt32)
)
ENGINE Log()

Databricks

CREATE TABLE t (
  c integer unsigned
)
TBLPROPERTIES(
  'delta.columnMapping.mode' = 'name',
  'delta.feature.allowColumnDefaults' = 'supported'
)

DuckDB

CREATE TABLE t (
  c uinteger
)

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 support

Dialect support

This example using jOOQ:

cast(field("c"), INTEGERUNSIGNED)

Translates to the following dialect specific expressions:

Access

cdec(c)

ASE, Sybase

CAST(c AS unsigned int)

Aurora MySQL, MariaDB, MemSQL, MySQL

CAST(c AS unsigned)

Aurora Postgres, CockroachDB, Derby, Exasol, Firebird, H2, HSQLDB, Hana, Postgres, Redshift, SQLDataWarehouse, SQLServer, SQLite, Teradata, Vertica, YugabyteDB

CAST(c AS bigint)

BigQuery, DB2, Databricks, Informix, Trino

CAST(c AS integer unsigned)

ClickHouse

CAST(c AS Nullable(UInt32))

DuckDB

CAST(c AS uinteger)

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!

The jOOQ Logo