Available in versions: Dev (3.21)
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.
ALTER TABLE .. ALTER COLUMN .. DROP IDENTITY
Applies to ✅ Open Source Edition ✅ Express Edition ✅ Professional Edition ✅ Enterprise Edition
An existing column IDENTITY
flag can be removed from a column using the ALTER TABLE's
DROP IDENTITY
clause on a column:
// Drop the identity flag from a column create.alterTable("table").alter("column").dropIdentity().execute();
Dialect support
This example using jOOQ:
alterTable("t").alter("c").dropIdentity()
Translates to the following dialect specific expressions:
Aurora Postgres, CockroachDB, Exasol, Firebird, H2, HSQLDB, Postgres, YugabyteDB
ALTER TABLE t ALTER c DROP IDENTITY
DB2
ALTER TABLE t ALTER c DROP GENERATED
Oracle
ALTER TABLE t MODIFY c DROP IDENTITY
ASE, Access, Aurora MySQL, BigQuery, ClickHouse, Databricks, Derby, DuckDB, Hana, Informix, MariaDB, MemSQL, MySQL, Redshift, SQLDataWarehouse, SQLServer, SQLite, Snowflake, Sybase, Teradata, Trino, Vertica
/* UNSUPPORTED */
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!