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.

FLOAT (Double)

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

The FLOAT data type represents a variable bit floating point number, or java.lang.Double in Java, or Types.FLOAT in JDBC

jOOQ currently doesn't support a precision on a FLOAT type.

DDL support

Dialect support

This example using jOOQ:

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

Translates to the following dialect specific expressions:

Access, Aurora MySQL, DB2, Derby, DuckDB, Exasol, H2, HSQLDB, Informix, MariaDB, MemSQL, MySQL, Oracle, SQLDataWarehouse, SQLServer, Snowflake, Teradata, Trino, Vertica

CREATE TABLE t (
  c float
)

ASE, Sybase

CREATE TABLE t (
  c float NULL
)

Aurora Postgres, CockroachDB, Postgres, Redshift, YugabyteDB

CREATE TABLE t (
  c float8
)

BigQuery

CREATE TABLE t (
  c float64
)

ClickHouse

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

Databricks

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

Firebird

CREATE TABLE t (
  c double precision
)

Hana, SQLite

CREATE TABLE t (
  c double
)
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"), FLOAT)

Translates to the following dialect specific expressions:

Access

cdbl(c)

ASE, DB2, Derby, DuckDB, Exasol, H2, HSQLDB, Informix, Oracle, SQLDataWarehouse, SQLServer, Snowflake, Sybase, Teradata, Trino, Vertica

CAST(c AS float)

Aurora MySQL, MariaDB, MemSQL, MySQL

CAST(c AS decimal)

Aurora Postgres, CockroachDB, Postgres, Redshift, YugabyteDB

CAST(c AS float8)

BigQuery

CAST(c AS float64)

ClickHouse

CAST(c AS Nullable(float))

Databricks, Hana, SQLite

CAST(c AS double)

Firebird

CAST(c AS double precision)
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