-
public interface AlterTableStep
The step in theALTER TABLE
statement where the action can be decided.Referencing
XYZ*Step
types directly from client codeIt is usually not recommended to reference any
XYZ*Step
types directly from client code, or assign them to local variables. When writing dynamic SQL, creating a statement's components dynamically, and passing them to the DSL API statically is usually a better choice. See the manual's section about dynamic SQL for details: https://www.jooq.org/doc/latest/manual/sql-building/dynamic-sql.Drawbacks of referencing the
XYZ*Step
types directly:- They're operating on mutable implementations (as of jOOQ 3.x)
- They're less composable and not easy to get right when dynamic SQL gets complex
- They're less readable
- They might have binary incompatible changes between minor releases
- Author:
- Lukas Eder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NotNull AlterTableAddStep
add(String field, DataType<?> type)
Add anADD COLUMN
clause to theALTER TABLE
statement.@NotNull AlterTableAddStep
add(Collection<? extends FieldOrConstraint> fields)
Add anADD
clause with multiple columns or constraints to theALTER TABLE
statement.@NotNull AlterTableUsingIndexStep
add(Constraint constraint)
Add anADD CONSTRAINT
clause to theALTER TABLE
statement.@NotNull AlterTableAddStep
add(Field<?> field)
Add anADD COLUMN
clause to theALTER TABLE
statement.<T> @NotNull AlterTableAddStep
add(Field<T> field, DataType<T> type)
Add anADD COLUMN
clause to theALTER TABLE
statement.@NotNull AlterTableAddStep
add(FieldOrConstraint... fields)
Add anADD
clause with multiple columns or constraints to theALTER TABLE
statement.@NotNull AlterTableAddStep
add(Name field, DataType<?> type)
Add anADD COLUMN
clause to theALTER TABLE
statement.@NotNull AlterTableAddStep
addColumn(String field, DataType<?> type)
Add anADD COLUMN
clause to theALTER TABLE
statement.@NotNull AlterTableAddStep
addColumn(Field<?> field)
Add anADD COLUMN
clause to theALTER TABLE
statement.<T> @NotNull AlterTableAddStep
addColumn(Field<T> field, DataType<T> type)
Add anADD COLUMN
clause to theALTER TABLE
statement.@NotNull AlterTableAddStep
addColumn(Name field, DataType<?> type)
Add anADD COLUMN
clause to theALTER TABLE
statement.@NotNull AlterTableAddStep
addColumnIfNotExists(String field, DataType<?> type)
Add anADD COLUMN IF NOT EXISTS
clause to theALTER TABLE
statement.@NotNull AlterTableAddStep
addColumnIfNotExists(Field<?> field)
Add anADD COLUMN IF NOT EXISTS
clause to theALTER TABLE
statement.<T> @NotNull AlterTableAddStep
addColumnIfNotExists(Field<T> field, DataType<T> type)
Add anADD COLUMN IF NOT EXISTS
clause to theALTER TABLE
statement.@NotNull AlterTableAddStep
addColumnIfNotExists(Name field, DataType<?> type)
Add anADD COLUMN IF NOT EXISTS
clause to theALTER TABLE
statement.@NotNull AlterTableAddStep
addIfNotExists(String field, DataType<?> type)
Add anADD COLUMN IF NOT EXISTS
clause to theALTER TABLE
statement.@NotNull AlterTableAddStep
addIfNotExists(Field<?> field)
Add anADD COLUMN IF NOT EXISTS
clause to theALTER TABLE
statement.<T> @NotNull AlterTableAddStep
addIfNotExists(Field<T> field, DataType<T> type)
Add anADD COLUMN IF NOT EXISTS
clause to theALTER TABLE
statement.@NotNull AlterTableAddStep
addIfNotExists(Name field, DataType<?> type)
Add anADD COLUMN IF NOT EXISTS
clause to theALTER TABLE
statement.@NotNull AlterTableAlterStep<Object>
alter(String field)
Add anALTER COLUMN
clause to theALTER TABLE
statement.@NotNull AlterTableAlterConstraintStep
alter(Constraint constraint)
Add anALTER CONSTRAINT
clause to theALTER TABLE
statement.<T> @NotNull AlterTableAlterStep<T>
alter(Field<T> field)
Add anALTER COLUMN
clause to theALTER TABLE
statement.@NotNull AlterTableAlterStep<Object>
alter(Name field)
Add anALTER COLUMN
clause to theALTER TABLE
statement.@NotNull AlterTableAlterStep<Object>
alterColumn(String field)
Add anALTER COLUMN
clause to theALTER TABLE
statement.<T> @NotNull AlterTableAlterStep<T>
alterColumn(Field<T> field)
Add anALTER COLUMN
clause to theALTER TABLE
statement.@NotNull AlterTableAlterStep<Object>
alterColumn(Name field)
Add anALTER COLUMN
clause to theALTER TABLE
statement.@NotNull AlterTableAlterConstraintStep
alterConstraint(String constraint)
Add anALTER CONSTRAINT
clause to theALTER TABLE
statement.@NotNull AlterTableAlterConstraintStep
alterConstraint(Constraint constraint)
Add anALTER CONSTRAINT
clause to theALTER TABLE
statement.@NotNull AlterTableAlterConstraintStep
alterConstraint(Name constraint)
Add anALTER CONSTRAINT
clause to theALTER TABLE
statement.@NotNull AlterTableFinalStep
comment(String comment)
Specify a comment for a table using MySQL's syntax.@NotNull AlterTableFinalStep
comment(Comment comment)
Specify a comment for a table using MySQL's syntax.@NotNull AlterTableDropStep
drop(String field)
Add anDROP COLUMN
clause to theALTER TABLE
statement.@NotNull AlterTableDropStep
drop(String... fields)
Add anDROP COLUMN
clause to theALTER TABLE
statement.@NotNull AlterTableDropStep
drop(Collection<? extends Field<?>> fields)
Add anDROP COLUMN
clause to theALTER TABLE
statement.@NotNull AlterTableDropStep
drop(Constraint constraint)
Add aDROP CONSTRAINT
clause to theALTER TABLE
statement.@NotNull AlterTableDropStep
drop(Field<?> field)
Add anDROP COLUMN
clause to theALTER TABLE
statement.@NotNull AlterTableDropStep
drop(Field<?>... fields)
Add anDROP COLUMN
clause to theALTER TABLE
statement.@NotNull AlterTableDropStep
drop(Name field)
Add anDROP COLUMN
clause to theALTER TABLE
statement.@NotNull AlterTableDropStep
drop(Name... fields)
Add anDROP COLUMN
clause to theALTER TABLE
statement.@NotNull AlterTableDropStep
dropColumn(String field)
Add anDROP COLUMN
clause to theALTER TABLE
statement.@NotNull AlterTableDropStep
dropColumn(Field<?> field)
Add anDROP COLUMN
clause to theALTER TABLE
statement.@NotNull AlterTableDropStep
dropColumn(Name field)
Add anDROP COLUMN
clause to theALTER TABLE
statement.@NotNull AlterTableDropStep
dropColumnIfExists(String field)
Add anDROP COLUMN IF EXISTS
clause to theALTER TABLE
statement.@NotNull AlterTableDropStep
dropColumnIfExists(Field<?> field)
Add anDROP COLUMN IF EXISTS
clause to theALTER TABLE
statement.@NotNull AlterTableDropStep
dropColumnIfExists(Name field)
Add anDROP COLUMN IF EXISTS
clause to theALTER TABLE
statement.@NotNull AlterTableDropStep
dropColumns(String... fields)
Add anDROP COLUMN
clause to theALTER TABLE
statement.@NotNull AlterTableDropStep
dropColumns(Collection<? extends Field<?>> fields)
Add anDROP COLUMN
clause to theALTER TABLE
statement.@NotNull AlterTableDropStep
dropColumns(Field<?>... fields)
Add anDROP COLUMN
clause to theALTER TABLE
statement.@NotNull AlterTableDropStep
dropColumns(Name... fields)
Add anDROP COLUMN
clause to theALTER TABLE
statement.@NotNull AlterTableDropStep
dropConstraint(String constraint)
Add aDROP CONSTRAINT
clause to theALTER TABLE
statement.@NotNull AlterTableDropStep
dropConstraint(Constraint constraint)
Add aDROP CONSTRAINT
clause to theALTER TABLE
statement.@NotNull AlterTableDropStep
dropConstraint(Name constraint)
Add aDROP CONSTRAINT
clause to theALTER TABLE
statement.@NotNull AlterTableDropStep
dropConstraintIfExists(String constraint)
Add aDROP CONSTRAINT IF EXISTS
clause to theALTER TABLE
statement.@NotNull AlterTableDropStep
dropConstraintIfExists(Constraint constraint)
Add aDROP CONSTRAINT IF EXISTS
clause to theALTER TABLE
statement.@NotNull AlterTableDropStep
dropConstraintIfExists(Name constraint)
Add aDROP CONSTRAINT IF EXISTS
clause to theALTER TABLE
statement.@NotNull AlterTableDropStep
dropForeignKey(String constraint)
Add aDROP FOREIGN KEY
clause to theALTER TABLE
statement.@NotNull AlterTableDropStep
dropForeignKey(Constraint constraint)
Add aDROP FOREIGN KEY
clause to theALTER TABLE
statement.@NotNull AlterTableDropStep
dropForeignKey(Name constraint)
Add aDROP FOREIGN KEY
clause to theALTER TABLE
statement.@NotNull AlterTableDropStep
dropIfExists(String field)
Add anDROP COLUMN IF EXISTS
clause to theALTER TABLE
statement.@NotNull AlterTableDropStep
dropIfExists(Constraint constraint)
Add aDROP CONSTRAINT IF EXISTS
clause to theALTER TABLE
statement.@NotNull AlterTableDropStep
dropIfExists(Field<?> field)
Add anDROP COLUMN IF EXISTS
clause to theALTER TABLE
statement.@NotNull AlterTableDropStep
dropIfExists(Name field)
Add anDROP COLUMN IF EXISTS
clause to theALTER TABLE
statement.@NotNull AlterTableDropStep
dropPrimaryKey()
Add aDROP PRIMARY KEY
clause to theALTER TABLE
statement.@NotNull AlterTableDropStep
dropPrimaryKey(String constraint)
Add aDROP PRIMARY KEY
clause to theALTER TABLE
statement.@NotNull AlterTableDropStep
dropPrimaryKey(Constraint constraint)
Add aDROP PRIMARY KEY
clause to theALTER TABLE
statement.@NotNull AlterTableDropStep
dropPrimaryKey(Name constraint)
Add aDROP PRIMARY KEY
clause to theALTER TABLE
statement.@NotNull AlterTableDropStep
dropUnique(String constraint)
Add aDROP UNIQUE
clause to theALTER TABLE
statement.@NotNull AlterTableDropStep
dropUnique(Constraint constraint)
Add aDROP UNIQUE
clause to theALTER TABLE
statement.@NotNull AlterTableDropStep
dropUnique(Name constraint)
Add aDROP UNIQUE
clause to theALTER TABLE
statement.@NotNull AlterTableRenameColumnToStep
renameColumn(String oldName)
Add aRENAME COLUMN
clause to theALTER TABLE
statement.@NotNull AlterTableRenameColumnToStep
renameColumn(Field<?> oldName)
Add aRENAME COLUMN
clause to theALTER TABLE
statement.@NotNull AlterTableRenameColumnToStep
renameColumn(Name oldName)
Add aRENAME COLUMN
clause to theALTER TABLE
statement.@NotNull AlterTableRenameConstraintToStep
renameConstraint(String oldName)
Add aRENAME CONSTRAINT
clause to theALTER TABLE
statement.@NotNull AlterTableRenameConstraintToStep
renameConstraint(Constraint oldName)
Add aRENAME CONSTRAINT
clause to theALTER TABLE
statement.@NotNull AlterTableRenameConstraintToStep
renameConstraint(Name oldName)
Add aRENAME CONSTRAINT
clause to theALTER TABLE
statement.@NotNull AlterTableRenameIndexToStep
renameIndex(String oldName)
Add aRENAME INDEX
clause to theALTER TABLE
statement.@NotNull AlterTableRenameIndexToStep
renameIndex(Index oldName)
Add aRENAME INDEX
clause to theALTER TABLE
statement.@NotNull AlterTableRenameIndexToStep
renameIndex(Name oldName)
Add aRENAME INDEX
clause to theALTER TABLE
statement.@NotNull AlterTableFinalStep
renameTo(String newName)
Add aRENAME TO
clause to theALTER TABLE
statement.@NotNull AlterTableFinalStep
renameTo(Name newName)
Add aRENAME TO
clause to theALTER TABLE
statement.@NotNull AlterTableFinalStep
renameTo(Table<?> newName)
Add aRENAME TO
clause to theALTER TABLE
statement.
-
-
-
Method Detail
-
comment
@NotNull @Support({AURORA_MYSQL,AURORA_POSTGRES,COCKROACHDB,DB2,FIREBIRD,H2,HSQLDB,MARIADB,MEMSQL,MYSQL,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLSERVER,TERADATA,VERTICA}) @NotNull AlterTableFinalStep comment(String comment)
Specify a comment for a table using MySQL's syntax.
-
comment
@NotNull @Support({AURORA_MYSQL,AURORA_POSTGRES,COCKROACHDB,DB2,FIREBIRD,H2,HSQLDB,MARIADB,MEMSQL,MYSQL,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLSERVER,TERADATA,VERTICA}) @NotNull AlterTableFinalStep comment(Comment comment)
Specify a comment for a table using MySQL's syntax.
-
renameTo
@NotNull @Support({ACCESS,ASE,AURORA_MYSQL,AURORA_POSTGRES,COCKROACHDB,CUBRID,DB2,DERBY,H2,HANA,HSQLDB,INFORMIX,INGRES,MARIADB,MEMSQL,MYSQL,ORACLE,POSTGRES,REDSHIFT,SQLDATAWAREHOUSE,SQLITE,SQLSERVER,SYBASE,TERADATA,VERTICA}) @NotNull AlterTableFinalStep renameTo(Table<?> newName)
Add aRENAME TO
clause to theALTER TABLE
statement.
-
renameTo
@NotNull @Support({ACCESS,ASE,AURORA_MYSQL,AURORA_POSTGRES,COCKROACHDB,CUBRID,DB2,DERBY,H2,HANA,HSQLDB,INFORMIX,INGRES,MARIADB,MEMSQL,MYSQL,ORACLE,POSTGRES,REDSHIFT,SQLDATAWAREHOUSE,SQLITE,SQLSERVER,SYBASE,TERADATA,VERTICA}) @NotNull AlterTableFinalStep renameTo(Name newName)
Add aRENAME TO
clause to theALTER TABLE
statement.
-
renameTo
@NotNull @Support({ACCESS,ASE,AURORA_MYSQL,AURORA_POSTGRES,COCKROACHDB,CUBRID,DB2,DERBY,H2,HANA,HSQLDB,INFORMIX,INGRES,MARIADB,MEMSQL,MYSQL,ORACLE,POSTGRES,REDSHIFT,SQLDATAWAREHOUSE,SQLITE,SQLSERVER,SYBASE,TERADATA,VERTICA}) @NotNull AlterTableFinalStep renameTo(String newName)
Add aRENAME TO
clause to theALTER TABLE
statement.
-
renameColumn
@NotNull @Support @NotNull AlterTableRenameColumnToStep renameColumn(Field<?> oldName)
Add aRENAME COLUMN
clause to theALTER TABLE
statement.
-
renameColumn
@NotNull @Support @NotNull AlterTableRenameColumnToStep renameColumn(Name oldName)
Add aRENAME COLUMN
clause to theALTER TABLE
statement.
-
renameColumn
@NotNull @Support @NotNull AlterTableRenameColumnToStep renameColumn(String oldName)
Add aRENAME COLUMN
clause to theALTER TABLE
statement.
-
renameIndex
@NotNull @Support({ASE,AURORA_MYSQL,AURORA_POSTGRES,COCKROACHDB,DB2,DERBY,H2,HANA,HSQLDB,MARIADB,MEMSQL,MYSQL,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLSERVER2016}) @NotNull AlterTableRenameIndexToStep renameIndex(Name oldName)
Add aRENAME INDEX
clause to theALTER TABLE
statement.
-
renameIndex
@NotNull @Support({ASE,AURORA_MYSQL,AURORA_POSTGRES,COCKROACHDB,DB2,DERBY,H2,HANA,HSQLDB,MARIADB,MEMSQL,MYSQL,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLSERVER2016}) @NotNull AlterTableRenameIndexToStep renameIndex(Index oldName)
Add aRENAME INDEX
clause to theALTER TABLE
statement.
-
renameIndex
@NotNull @Support({ASE,AURORA_MYSQL,AURORA_POSTGRES,COCKROACHDB,DB2,DERBY,H2,HANA,HSQLDB,MARIADB,MEMSQL,MYSQL,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLSERVER2016}) @NotNull AlterTableRenameIndexToStep renameIndex(String oldName)
Add aRENAME INDEX
clause to theALTER TABLE
statement.
-
renameConstraint
@NotNull @Support({ACCESS,ASE,AURORA_MYSQL,AURORA_POSTGRES,COCKROACHDB,CUBRID,DB2,H2,HSQLDB,INFORMIX,INGRES,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLSERVER,SYBASE,TERADATA,VERTICA}) @NotNull AlterTableRenameConstraintToStep renameConstraint(Constraint oldName)
Add aRENAME CONSTRAINT
clause to theALTER TABLE
statement.
-
renameConstraint
@NotNull @Support({ACCESS,ASE,AURORA_MYSQL,AURORA_POSTGRES,COCKROACHDB,CUBRID,DB2,H2,HSQLDB,INFORMIX,INGRES,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLSERVER,SYBASE,TERADATA,VERTICA}) @NotNull AlterTableRenameConstraintToStep renameConstraint(Name oldName)
Add aRENAME CONSTRAINT
clause to theALTER TABLE
statement.
-
renameConstraint
@NotNull @Support({ACCESS,ASE,AURORA_MYSQL,AURORA_POSTGRES,COCKROACHDB,CUBRID,DB2,H2,HSQLDB,INFORMIX,INGRES,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLSERVER,SYBASE,TERADATA,VERTICA}) @NotNull AlterTableRenameConstraintToStep renameConstraint(String oldName)
Add aRENAME CONSTRAINT
clause to theALTER TABLE
statement.
-
alter
@NotNull @Support({DB2,ORACLE}) @Pro @NotNull AlterTableAlterConstraintStep alter(Constraint constraint)
Add anALTER CONSTRAINT
clause to theALTER TABLE
statement.This is an alias for
alterConstraint(Constraint)
.
-
alter
@NotNull @Support({ACCESS,ASE,AURORA_MYSQL,AURORA_POSTGRES,COCKROACHDB,CUBRID,DB2,DERBY,FIREBIRD,H2,HANA,HSQLDB,INFORMIX,INGRES,MARIADB,MEMSQL,MYSQL,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLSERVER,SYBASE,VERTICA}) <T> @NotNull AlterTableAlterStep<T> alter(Field<T> field)
-
alter
@NotNull @Support({ACCESS,ASE,AURORA_MYSQL,AURORA_POSTGRES,COCKROACHDB,CUBRID,DB2,DERBY,FIREBIRD,H2,HANA,HSQLDB,INFORMIX,INGRES,MARIADB,MEMSQL,MYSQL,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLSERVER,SYBASE,VERTICA}) @NotNull AlterTableAlterStep<Object> alter(Name field)
-
alter
@NotNull @Support({ACCESS,ASE,AURORA_MYSQL,AURORA_POSTGRES,COCKROACHDB,CUBRID,DB2,DERBY,FIREBIRD,H2,HANA,HSQLDB,INFORMIX,INGRES,MARIADB,MEMSQL,MYSQL,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLSERVER,SYBASE,VERTICA}) @NotNull AlterTableAlterStep<Object> alter(String field)
-
alterColumn
@NotNull @Support({ACCESS,ASE,AURORA_MYSQL,AURORA_POSTGRES,COCKROACHDB,CUBRID,DB2,DERBY,FIREBIRD,H2,HANA,HSQLDB,INFORMIX,INGRES,MARIADB,MEMSQL,MYSQL,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLSERVER,SYBASE,VERTICA}) <T> @NotNull AlterTableAlterStep<T> alterColumn(Field<T> field)
Add anALTER COLUMN
clause to theALTER TABLE
statement.
-
alterColumn
@NotNull @Support({ACCESS,ASE,AURORA_MYSQL,AURORA_POSTGRES,COCKROACHDB,CUBRID,DB2,DERBY,FIREBIRD,H2,HANA,HSQLDB,INFORMIX,INGRES,MARIADB,MEMSQL,MYSQL,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLSERVER,SYBASE,VERTICA}) @NotNull AlterTableAlterStep<Object> alterColumn(Name field)
Add anALTER COLUMN
clause to theALTER TABLE
statement.
-
alterColumn
@NotNull @Support({ACCESS,ASE,AURORA_MYSQL,AURORA_POSTGRES,COCKROACHDB,CUBRID,DB2,DERBY,FIREBIRD,H2,HANA,HSQLDB,INFORMIX,INGRES,MARIADB,MEMSQL,MYSQL,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLSERVER,SYBASE,VERTICA}) @NotNull AlterTableAlterStep<Object> alterColumn(String field)
Add anALTER COLUMN
clause to theALTER TABLE
statement.
-
alterConstraint
@NotNull @Support({DB2,ORACLE}) @Pro @NotNull AlterTableAlterConstraintStep alterConstraint(Constraint constraint)
Add anALTER CONSTRAINT
clause to theALTER TABLE
statement.
-
alterConstraint
@NotNull @Support({DB2,ORACLE}) @Pro @NotNull AlterTableAlterConstraintStep alterConstraint(Name constraint)
Add anALTER CONSTRAINT
clause to theALTER TABLE
statement.
-
alterConstraint
@NotNull @Support({DB2,ORACLE}) @Pro @NotNull AlterTableAlterConstraintStep alterConstraint(String constraint)
Add anALTER CONSTRAINT
clause to theALTER TABLE
statement.
-
add
@NotNull @Support @NotNull AlterTableAddStep add(Field<?> field)
-
add
@NotNull @Support({ASE,AURORA_MYSQL,AURORA_POSTGRES,COCKROACHDB,DB2,FIREBIRD,H2,HANA,INFORMIX,MARIADB,MEMSQL,MYSQL,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLSERVER,TERADATA}) @NotNull AlterTableAddStep add(FieldOrConstraint... fields)
Add anADD
clause with multiple columns or constraints to theALTER TABLE
statement.
-
add
@NotNull @Support({ASE,AURORA_MYSQL,AURORA_POSTGRES,COCKROACHDB,DB2,FIREBIRD,H2,HANA,INFORMIX,MARIADB,MEMSQL,MYSQL,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLSERVER,TERADATA}) @NotNull AlterTableAddStep add(Collection<? extends FieldOrConstraint> fields)
Add anADD
clause with multiple columns or constraints to theALTER TABLE
statement.
-
add
@NotNull @Support <T> @NotNull AlterTableAddStep add(Field<T> field, DataType<T> type)
Add anADD COLUMN
clause to theALTER TABLE
statement.This is an alias for
addColumn(Field, DataType)
.
-
add
@NotNull @Support @NotNull AlterTableAddStep add(Name field, DataType<?> type)
Add anADD COLUMN
clause to theALTER TABLE
statement.This is an alias for
addColumn(Name, DataType)
.
-
add
@NotNull @Support @NotNull AlterTableAddStep add(String field, DataType<?> type)
Add anADD COLUMN
clause to theALTER TABLE
statement.This is an alias for
addColumn(String, DataType)
.
-
addIfNotExists
@NotNull @Support({AURORA_POSTGRES,COCKROACHDB,DB2,H2,HANA,MARIADB,ORACLE,POSTGRES_10,SQLDATAWAREHOUSE,SQLSERVER,TERADATA}) @NotNull AlterTableAddStep addIfNotExists(Field<?> field)
Add anADD COLUMN IF NOT EXISTS
clause to theALTER TABLE
statement.This is an alias for
addColumnIfNotExists(Field)
.
-
addIfNotExists
@NotNull @Support({AURORA_POSTGRES,COCKROACHDB,DB2,H2,HANA,MARIADB,ORACLE,POSTGRES_10,SQLDATAWAREHOUSE,SQLSERVER,TERADATA}) <T> @NotNull AlterTableAddStep addIfNotExists(Field<T> field, DataType<T> type)
Add anADD COLUMN IF NOT EXISTS
clause to theALTER TABLE
statement.This is an alias for
addColumnIfNotExists(Field, DataType)
.
-
addIfNotExists
@NotNull @Support({AURORA_POSTGRES,COCKROACHDB,DB2,H2,HANA,MARIADB,ORACLE,POSTGRES_10,SQLDATAWAREHOUSE,SQLSERVER,TERADATA}) @NotNull AlterTableAddStep addIfNotExists(Name field, DataType<?> type)
Add anADD COLUMN IF NOT EXISTS
clause to theALTER TABLE
statement.This is an alias for
addColumnIfNotExists(Name, DataType)
.
-
addIfNotExists
@NotNull @Support({AURORA_POSTGRES,COCKROACHDB,DB2,H2,HANA,MARIADB,ORACLE,POSTGRES_10,SQLDATAWAREHOUSE,SQLSERVER,TERADATA}) @NotNull AlterTableAddStep addIfNotExists(String field, DataType<?> type)
Add anADD COLUMN IF NOT EXISTS
clause to theALTER TABLE
statement.This is an alias for
addColumnIfNotExists(String, DataType)
.
-
addColumn
@NotNull @Support @NotNull AlterTableAddStep addColumn(Field<?> field)
Add anADD COLUMN
clause to theALTER TABLE
statement.
-
addColumn
@NotNull @Support <T> @NotNull AlterTableAddStep addColumn(Field<T> field, DataType<T> type)
Add anADD COLUMN
clause to theALTER TABLE
statement.
-
addColumn
@NotNull @Support @NotNull AlterTableAddStep addColumn(Name field, DataType<?> type)
Add anADD COLUMN
clause to theALTER TABLE
statement.
-
addColumn
@NotNull @Support @NotNull AlterTableAddStep addColumn(String field, DataType<?> type)
Add anADD COLUMN
clause to theALTER TABLE
statement.
-
addColumnIfNotExists
@NotNull @Support({AURORA_POSTGRES,COCKROACHDB,DB2,H2,HANA,MARIADB,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLSERVER,TERADATA}) @NotNull AlterTableAddStep addColumnIfNotExists(Field<?> field)
Add anADD COLUMN IF NOT EXISTS
clause to theALTER TABLE
statement.
-
addColumnIfNotExists
@NotNull @Support({AURORA_POSTGRES,COCKROACHDB,DB2,H2,HANA,MARIADB,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLSERVER,TERADATA}) <T> @NotNull AlterTableAddStep addColumnIfNotExists(Field<T> field, DataType<T> type)
Add anADD COLUMN IF NOT EXISTS
clause to theALTER TABLE
statement.
-
addColumnIfNotExists
@NotNull @Support({AURORA_POSTGRES,COCKROACHDB,DB2,H2,HANA,MARIADB,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLSERVER,TERADATA}) @NotNull AlterTableAddStep addColumnIfNotExists(Name field, DataType<?> type)
Add anADD COLUMN IF NOT EXISTS
clause to theALTER TABLE
statement.
-
addColumnIfNotExists
@NotNull @Support({AURORA_POSTGRES,COCKROACHDB,DB2,H2,HANA,MARIADB,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLSERVER,TERADATA}) @NotNull AlterTableAddStep addColumnIfNotExists(String field, DataType<?> type)
Add anADD COLUMN IF NOT EXISTS
clause to theALTER TABLE
statement.
-
add
@NotNull @Support({ACCESS,ASE,AURORA_MYSQL,AURORA_POSTGRES,COCKROACHDB,CUBRID,DB2,DERBY,FIREBIRD,H2,HANA,HSQLDB,INFORMIX,INGRES,MARIADB,MEMSQL,MYSQL,ORACLE,POSTGRES,REDSHIFT,SQLDATAWAREHOUSE,SQLSERVER,SYBASE,TERADATA,VERTICA}) @NotNull AlterTableUsingIndexStep add(Constraint constraint)
Add anADD CONSTRAINT
clause to theALTER TABLE
statement.
-
drop
@NotNull @Support({ACCESS,ASE,AURORA_MYSQL,AURORA_POSTGRES,COCKROACHDB,CUBRID,DB2,DERBY,FIREBIRD,H2,HANA,HSQLDB,INFORMIX,INGRES,MARIADB,MEMSQL,MYSQL,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLSERVER,SYBASE,TERADATA}) @NotNull AlterTableDropStep drop(Field<?> field)
-
drop
@NotNull @Support({ACCESS,ASE,AURORA_MYSQL,AURORA_POSTGRES,COCKROACHDB,CUBRID,DB2,DERBY,FIREBIRD,H2,HANA,HSQLDB,INFORMIX,INGRES,MARIADB,MEMSQL,MYSQL,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLSERVER,SYBASE,TERADATA}) @NotNull AlterTableDropStep drop(Name field)
-
drop
@NotNull @Support({ACCESS,ASE,AURORA_MYSQL,AURORA_POSTGRES,COCKROACHDB,CUBRID,DB2,DERBY,FIREBIRD,H2,HANA,HSQLDB,INFORMIX,INGRES,MARIADB,MEMSQL,MYSQL,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLSERVER,SYBASE,TERADATA}) @NotNull AlterTableDropStep drop(String field)
-
dropIfExists
@NotNull @Support({AURORA_POSTGRES,COCKROACHDB,DB2,H2,HANA,MARIADB,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLSERVER,TERADATA}) @NotNull AlterTableDropStep dropIfExists(Field<?> field)
Add anDROP COLUMN IF EXISTS
clause to theALTER TABLE
statement.This is an alias for
dropColumnIfExists(Field)
.
-
dropIfExists
@NotNull @Support({AURORA_POSTGRES,COCKROACHDB,DB2,H2,HANA,MARIADB,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLSERVER,TERADATA}) @NotNull AlterTableDropStep dropIfExists(Name field)
Add anDROP COLUMN IF EXISTS
clause to theALTER TABLE
statement.This is an alias for
dropColumnIfExists(Name)
.
-
dropIfExists
@NotNull @Support({AURORA_POSTGRES,COCKROACHDB,DB2,H2,HANA,MARIADB,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLSERVER,TERADATA}) @NotNull AlterTableDropStep dropIfExists(String field)
Add anDROP COLUMN IF EXISTS
clause to theALTER TABLE
statement.This is an alias for
dropColumnIfExists(String)
.
-
dropColumn
@NotNull @Support({ACCESS,ASE,AURORA_MYSQL,AURORA_POSTGRES,COCKROACHDB,CUBRID,DB2,DERBY,FIREBIRD,H2,HANA,HSQLDB,INFORMIX,INGRES,MARIADB,MEMSQL,MYSQL,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLSERVER,SYBASE,TERADATA}) @NotNull AlterTableDropStep dropColumn(Field<?> field)
Add anDROP COLUMN
clause to theALTER TABLE
statement.
-
dropColumn
@NotNull @Support({ACCESS,ASE,AURORA_MYSQL,AURORA_POSTGRES,COCKROACHDB,CUBRID,DB2,DERBY,FIREBIRD,H2,HANA,HSQLDB,INFORMIX,INGRES,MARIADB,MEMSQL,MYSQL,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLSERVER,SYBASE,TERADATA}) @NotNull AlterTableDropStep dropColumn(Name field)
Add anDROP COLUMN
clause to theALTER TABLE
statement.
-
dropColumn
@NotNull @Support({ACCESS,ASE,AURORA_MYSQL,AURORA_POSTGRES,COCKROACHDB,CUBRID,DB2,DERBY,FIREBIRD,H2,HANA,HSQLDB,INFORMIX,INGRES,MARIADB,MEMSQL,MYSQL,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLSERVER,SYBASE,TERADATA}) @NotNull AlterTableDropStep dropColumn(String field)
Add anDROP COLUMN
clause to theALTER TABLE
statement.
-
dropColumnIfExists
@NotNull @Support({AURORA_POSTGRES,COCKROACHDB,DB2,H2,HANA,MARIADB,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLSERVER,TERADATA}) @NotNull AlterTableDropStep dropColumnIfExists(Field<?> field)
Add anDROP COLUMN IF EXISTS
clause to theALTER TABLE
statement.
-
dropColumnIfExists
@NotNull @Support({AURORA_POSTGRES,COCKROACHDB,DB2,H2,HANA,MARIADB,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLSERVER,TERADATA}) @NotNull AlterTableDropStep dropColumnIfExists(Name field)
Add anDROP COLUMN IF EXISTS
clause to theALTER TABLE
statement.
-
dropColumnIfExists
@NotNull @Support({AURORA_POSTGRES,COCKROACHDB,DB2,H2,HANA,MARIADB,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLSERVER,TERADATA}) @NotNull AlterTableDropStep dropColumnIfExists(String field)
Add anDROP COLUMN IF EXISTS
clause to theALTER TABLE
statement.
-
drop
@NotNull @Support({ASE,AURORA_MYSQL,AURORA_POSTGRES,COCKROACHDB,DB2,FIREBIRD,H2,HANA,INFORMIX,MARIADB,MEMSQL,MYSQL,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLSERVER,TERADATA}) @NotNull AlterTableDropStep drop(Field<?>... fields)
Add anDROP COLUMN
clause to theALTER TABLE
statement.This is an alias for
dropColumns(Collection)
.
-
drop
@NotNull @Support({ASE,AURORA_MYSQL,AURORA_POSTGRES,COCKROACHDB,DB2,FIREBIRD,H2,HANA,INFORMIX,MARIADB,MEMSQL,MYSQL,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLSERVER,TERADATA}) @NotNull AlterTableDropStep drop(Name... fields)
Add anDROP COLUMN
clause to theALTER TABLE
statement.This is an alias for
dropColumns(Collection)
.
-
drop
@NotNull @Support({ASE,AURORA_MYSQL,AURORA_POSTGRES,COCKROACHDB,DB2,FIREBIRD,H2,HANA,INFORMIX,MARIADB,MEMSQL,MYSQL,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLSERVER,TERADATA}) @NotNull AlterTableDropStep drop(String... fields)
Add anDROP COLUMN
clause to theALTER TABLE
statement.This is an alias for
dropColumns(Collection)
.
-
dropColumns
@NotNull @Support({ASE,AURORA_MYSQL,AURORA_POSTGRES,COCKROACHDB,DB2,FIREBIRD,H2,HANA,INFORMIX,MARIADB,MEMSQL,MYSQL,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLSERVER,TERADATA}) @NotNull AlterTableDropStep dropColumns(Field<?>... fields)
Add anDROP COLUMN
clause to theALTER TABLE
statement.
-
dropColumns
@NotNull @Support({ASE,AURORA_MYSQL,AURORA_POSTGRES,COCKROACHDB,DB2,FIREBIRD,H2,HANA,INFORMIX,MARIADB,MEMSQL,MYSQL,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLSERVER,TERADATA}) @NotNull AlterTableDropStep dropColumns(Name... fields)
Add anDROP COLUMN
clause to theALTER TABLE
statement.
-
dropColumns
@NotNull @Support({ASE,AURORA_MYSQL,AURORA_POSTGRES,COCKROACHDB,DB2,FIREBIRD,H2,HANA,INFORMIX,MARIADB,MEMSQL,MYSQL,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLSERVER,TERADATA}) @NotNull AlterTableDropStep dropColumns(String... fields)
Add anDROP COLUMN
clause to theALTER TABLE
statement.
-
drop
@NotNull @Support({ASE,AURORA_MYSQL,AURORA_POSTGRES,COCKROACHDB,DB2,FIREBIRD,H2,HANA,INFORMIX,MARIADB,MEMSQL,MYSQL,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLSERVER,TERADATA}) @NotNull AlterTableDropStep drop(Collection<? extends Field<?>> fields)
Add anDROP COLUMN
clause to theALTER TABLE
statement.This is an alias for
dropColumns(Collection)
.
-
dropColumns
@NotNull @Support({ASE,AURORA_MYSQL,AURORA_POSTGRES,COCKROACHDB,DB2,FIREBIRD,H2,HANA,INFORMIX,MARIADB,MEMSQL,MYSQL,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLSERVER,TERADATA}) @NotNull AlterTableDropStep dropColumns(Collection<? extends Field<?>> fields)
Add anDROP COLUMN
clause to theALTER TABLE
statement.
-
drop
@NotNull @Support({ACCESS,ASE,AURORA_POSTGRES,COCKROACHDB,CUBRID,DB2,DERBY,FIREBIRD,H2,HANA,HSQLDB,INFORMIX,INGRES,MARIADB,MEMSQL,ORACLE,POSTGRES,REDSHIFT,SQLDATAWAREHOUSE,SQLSERVER,SYBASE,TERADATA,VERTICA}) @NotNull AlterTableDropStep drop(Constraint constraint)
Add aDROP CONSTRAINT
clause to theALTER TABLE
statement.
-
dropConstraint
@NotNull @Support({ACCESS,ASE,AURORA_POSTGRES,COCKROACHDB,CUBRID,DB2,DERBY,FIREBIRD,H2,HANA,HSQLDB,INFORMIX,INGRES,MARIADB,ORACLE,POSTGRES,REDSHIFT,SQLDATAWAREHOUSE,SQLSERVER,SYBASE,TERADATA,VERTICA}) @NotNull AlterTableDropStep dropConstraint(Constraint constraint)
Add aDROP CONSTRAINT
clause to theALTER TABLE
statement.- See Also:
DSL.constraint(String)
-
dropConstraint
@NotNull @Support({ACCESS,ASE,AURORA_POSTGRES,COCKROACHDB,CUBRID,DB2,DERBY,FIREBIRD,H2,HANA,HSQLDB,INFORMIX,INGRES,MARIADB,ORACLE,POSTGRES,REDSHIFT,SQLDATAWAREHOUSE,SQLSERVER,SYBASE,TERADATA,VERTICA}) @NotNull AlterTableDropStep dropConstraint(Name constraint)
Add aDROP CONSTRAINT
clause to theALTER TABLE
statement.- See Also:
DSL.constraint(String)
-
dropConstraint
@NotNull @Support({ACCESS,ASE,AURORA_POSTGRES,COCKROACHDB,CUBRID,DB2,DERBY,FIREBIRD,H2,HANA,HSQLDB,INFORMIX,INGRES,MARIADB,ORACLE,POSTGRES,REDSHIFT,SQLDATAWAREHOUSE,SQLSERVER,SYBASE,TERADATA,VERTICA}) @NotNull AlterTableDropStep dropConstraint(String constraint)
Add aDROP CONSTRAINT
clause to theALTER TABLE
statement.- See Also:
DSL.constraint(String)
-
dropIfExists
@NotNull @Support({AURORA_POSTGRES,COCKROACHDB,H2,HANA,POSTGRES}) @NotNull AlterTableDropStep dropIfExists(Constraint constraint)
Add aDROP CONSTRAINT IF EXISTS
clause to theALTER TABLE
statement.
-
dropConstraintIfExists
@NotNull @Support({AURORA_POSTGRES,COCKROACHDB,H2,HANA,POSTGRES}) @NotNull AlterTableDropStep dropConstraintIfExists(Constraint constraint)
Add aDROP CONSTRAINT IF EXISTS
clause to theALTER TABLE
statement.- See Also:
DSL.constraint(String)
-
dropConstraintIfExists
@NotNull @Support({AURORA_POSTGRES,COCKROACHDB,H2,HANA,POSTGRES}) @NotNull AlterTableDropStep dropConstraintIfExists(Name constraint)
Add aDROP CONSTRAINT IF EXISTS
clause to theALTER TABLE
statement.- See Also:
DSL.constraint(String)
-
dropConstraintIfExists
@NotNull @Support({AURORA_POSTGRES,COCKROACHDB,H2,HANA,POSTGRES}) @NotNull AlterTableDropStep dropConstraintIfExists(String constraint)
Add aDROP CONSTRAINT IF EXISTS
clause to theALTER TABLE
statement.- See Also:
DSL.constraint(String)
-
dropPrimaryKey
@NotNull @Support({AURORA_MYSQL,AURORA_POSTGRES,DB2,DERBY,H2,HANA,HSQLDB,MARIADB,MYSQL,POSTGRES}) @NotNull AlterTableDropStep dropPrimaryKey()
Add aDROP PRIMARY KEY
clause to theALTER TABLE
statement.
-
dropPrimaryKey
@NotNull @Support({ACCESS,ASE,AURORA_MYSQL,AURORA_POSTGRES,CUBRID,DB2,DERBY,FIREBIRD,H2,HANA,HSQLDB,INFORMIX,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,REDSHIFT,SQLDATAWAREHOUSE,SQLSERVER,SYBASE,TERADATA,VERTICA}) @NotNull AlterTableDropStep dropPrimaryKey(Constraint constraint)
Add aDROP PRIMARY KEY
clause to theALTER TABLE
statement.Dialect families derived from MySQL do not know named constraints, in case of which this clause simply generates
DROP PRIMARY KEY
as indropPrimaryKey()
. In other dialect families, this produces aDROP CONSTRAINT [name]
clause, as indropConstraint(Constraint)
.
-
dropPrimaryKey
@NotNull @Support({ACCESS,ASE,AURORA_MYSQL,AURORA_POSTGRES,CUBRID,DB2,DERBY,FIREBIRD,H2,HANA,HSQLDB,INFORMIX,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,REDSHIFT,SQLDATAWAREHOUSE,SQLSERVER,SYBASE,TERADATA,VERTICA}) @NotNull AlterTableDropStep dropPrimaryKey(Name constraint)
Add aDROP PRIMARY KEY
clause to theALTER TABLE
statement.Dialect families derived from MySQL do not know named constraints, in case of which this clause simply generates
DROP PRIMARY KEY
as indropPrimaryKey()
. In other dialect families, this produces aDROP CONSTRAINT [name]
clause, as indropConstraint(Name)
.- See Also:
DSL.constraint(Name)
-
dropPrimaryKey
@NotNull @Support({ACCESS,ASE,AURORA_MYSQL,AURORA_POSTGRES,CUBRID,DB2,DERBY,FIREBIRD,H2,HANA,HSQLDB,INFORMIX,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,REDSHIFT,SQLDATAWAREHOUSE,SQLSERVER,SYBASE,TERADATA,VERTICA}) @NotNull AlterTableDropStep dropPrimaryKey(String constraint)
Add aDROP PRIMARY KEY
clause to theALTER TABLE
statement.Dialect families derived from MySQL do not know named constraints, in case of which this clause simply generates
DROP PRIMARY KEY
as indropPrimaryKey()
. In other dialect families, this produces aDROP CONSTRAINT [name]
clause, as indropConstraint(String)
.- See Also:
DSL.constraint(String)
-
dropUnique
@NotNull @Support({ACCESS,ASE,AURORA_MYSQL,AURORA_POSTGRES,COCKROACHDB,CUBRID,DB2,DERBY,FIREBIRD,H2,HANA,HSQLDB,INFORMIX,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,REDSHIFT,SQLDATAWAREHOUSE,SQLSERVER,SYBASE,TERADATA,VERTICA}) @NotNull AlterTableDropStep dropUnique(Constraint constraint)
Add aDROP UNIQUE
clause to theALTER TABLE
statement.Some dialects (e.g.
SQLDialect.COCKROACHDB
) may not be able to drop constraints by name. If users specify the constraint type and the name, however, then the syntax can be emulated, e.g. usingDROP INDEX .. CASCADE
.
-
dropUnique
@NotNull @Support({ACCESS,ASE,AURORA_MYSQL,AURORA_POSTGRES,COCKROACHDB,CUBRID,DB2,DERBY,FIREBIRD,H2,HANA,HSQLDB,INFORMIX,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,REDSHIFT,SQLDATAWAREHOUSE,SQLSERVER,SYBASE,TERADATA,VERTICA}) @NotNull AlterTableDropStep dropUnique(Name constraint)
Add aDROP UNIQUE
clause to theALTER TABLE
statement.Some dialects (e.g.
SQLDialect.COCKROACHDB
) may not be able to drop constraints by name. If users specify the constraint type and the name, however, then the syntax can be emulated, e.g. usingDROP INDEX .. CASCADE
.- See Also:
DSL.constraint(Name)
-
dropUnique
@NotNull @Support({ACCESS,ASE,AURORA_MYSQL,AURORA_POSTGRES,COCKROACHDB,CUBRID,DB2,DERBY,FIREBIRD,H2,HANA,HSQLDB,INFORMIX,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,REDSHIFT,SQLDATAWAREHOUSE,SQLSERVER,SYBASE,TERADATA,VERTICA}) @NotNull AlterTableDropStep dropUnique(String constraint)
Add aDROP UNIQUE
clause to theALTER TABLE
statement.Some dialects (e.g.
SQLDialect.COCKROACHDB
) may not be able to drop constraints by name. If users specify the constraint type and the name, however, then the syntax can be emulated, e.g. usingDROP INDEX .. CASCADE
.- See Also:
DSL.constraint(String)
-
dropForeignKey
@NotNull @Support({ACCESS,ASE,AURORA_MYSQL,AURORA_POSTGRES,COCKROACHDB,CUBRID,DB2,DERBY,FIREBIRD,H2,HANA,HSQLDB,INFORMIX,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,REDSHIFT,SQLDATAWAREHOUSE,SQLSERVER,SYBASE,TERADATA,VERTICA}) @NotNull AlterTableDropStep dropForeignKey(Constraint constraint)
Add aDROP FOREIGN KEY
clause to theALTER TABLE
statement.
-
dropForeignKey
@NotNull @Support({ACCESS,ASE,AURORA_MYSQL,AURORA_POSTGRES,COCKROACHDB,CUBRID,DB2,DERBY,FIREBIRD,H2,HANA,HSQLDB,INFORMIX,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,REDSHIFT,SQLDATAWAREHOUSE,SQLSERVER,SYBASE,TERADATA,VERTICA}) @NotNull AlterTableDropStep dropForeignKey(Name constraint)
Add aDROP FOREIGN KEY
clause to theALTER TABLE
statement.- See Also:
DSL.constraint(Name)
-
dropForeignKey
@NotNull @Support({ACCESS,ASE,AURORA_MYSQL,AURORA_POSTGRES,COCKROACHDB,CUBRID,DB2,DERBY,FIREBIRD,H2,HANA,HSQLDB,INFORMIX,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,REDSHIFT,SQLDATAWAREHOUSE,SQLSERVER,SYBASE,TERADATA,VERTICA}) @NotNull AlterTableDropStep dropForeignKey(String constraint)
Add aDROP FOREIGN KEY
clause to theALTER TABLE
statement.- See Also:
DSL.constraint(String)
-
-