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.
TINYINT (Byte)
Supported by ✅ Open Source Edition ✅ Express Edition ✅ Professional Edition ✅ Enterprise Edition
The TINYINT
data type represents a signed, 8 bit integer, or java.lang.Byte
in Java, or Types.TINYINT
in JDBC.
DDL support
Dialect support
This example using jOOQ:
createTable("t").column("c", TINYINT)
Translates to the following dialect specific expressions:
Access, Hana, SQLDataWarehouse
CREATE TABLE t ( c signed tinyint )
ASE
CREATE TABLE t ( c signed tinyint NULL )
Aurora MySQL, DuckDB, Exasol, H2, HSQLDB, MariaDB, MemSQL, MySQL, SQLServer, SQLite, Trino, Vertica
CREATE TABLE t ( c tinyint )
Aurora Postgres, CockroachDB, DB2, Derby, Firebird, Informix, Postgres, Redshift, YugabyteDB
CREATE TABLE t ( c smallint )
BigQuery
CREATE TABLE t ( c int64 )
ClickHouse
CREATE TABLE t ( c Nullable(tinyint) ) ENGINE Log()
Databricks
CREATE TABLE t ( c tinyint ) TBLPROPERTIES( 'delta.columnMapping.mode' = 'name', 'delta.feature.allowColumnDefaults' = 'supported' )
Oracle, Snowflake
CREATE TABLE t ( c number(3) )
Sybase
CREATE TABLE t ( c tinyint NULL )
Teradata
CREATE TABLE t ( c byteint )
Generated with jOOQ 3.21. Support in older jOOQ versions may differ. Translate your own SQL on our website
cast(field("c"), TINYINT)
Translates to the following dialect specific expressions:
Access
cbyte(c)
ASE, Databricks, DuckDB, Exasol, H2, HSQLDB, Hana, SQLDataWarehouse, SQLServer, SQLite, Sybase, Trino, Vertica
CAST(c AS tinyint)
Aurora MySQL, MariaDB, MemSQL, MySQL
CAST(c AS signed)
Aurora Postgres, CockroachDB, DB2, Derby, Firebird, Informix, Postgres, Redshift, YugabyteDB
CAST(c AS smallint)
BigQuery
CAST(c AS int64)
ClickHouse
CAST(c AS Nullable(tinyint))
Oracle, Snowflake
CAST(c AS number(3))
Teradata
CAST(c AS byteint)
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!