public interface AlterTableStep
ALTER TABLE
statement where the action can be
decided.
XYZ*Step
types directly from client code
It 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:
Modifier and Type | Method and Description |
---|---|
AlterTableAddStep |
add(Collection<? extends FieldOrConstraint> fields)
Add an
ADD clause with multiple columns or constraints to
the ALTER TABLE statement. |
AlterTableUsingIndexStep |
add(Constraint constraint)
Add an
ADD CONSTRAINT clause to the ALTER TABLE
statement. |
AlterTableAddStep |
add(Field<?> field)
Add an
ADD COLUMN clause to the ALTER TABLE
statement. |
<T> AlterTableAddStep |
add(Field<T> field,
DataType<T> type)
Add an
ADD COLUMN clause to the ALTER TABLE
statement. |
AlterTableAddStep |
add(FieldOrConstraint... fields)
Add an
ADD clause with multiple columns or constraints to
the ALTER TABLE statement. |
AlterTableAddStep |
add(Name field,
DataType<?> type)
Add an
ADD COLUMN clause to the ALTER TABLE
statement. |
AlterTableAddStep |
add(String field,
DataType<?> type)
Add an
ADD COLUMN clause to the ALTER TABLE
statement. |
AlterTableAddStep |
addColumn(Field<?> field)
Add an
ADD COLUMN clause to the ALTER TABLE
statement. |
<T> AlterTableAddStep |
addColumn(Field<T> field,
DataType<T> type)
Add an
ADD COLUMN clause to the ALTER TABLE
statement. |
AlterTableAddStep |
addColumn(Name field,
DataType<?> type)
Add an
ADD COLUMN clause to the ALTER TABLE
statement. |
AlterTableAddStep |
addColumn(String field,
DataType<?> type)
Add an
ADD COLUMN clause to the ALTER TABLE
statement. |
AlterTableAddStep |
addColumnIfNotExists(Field<?> field)
Add an
ADD COLUMN IF NOT EXISTS clause to the ALTER TABLE
statement. |
<T> AlterTableAddStep |
addColumnIfNotExists(Field<T> field,
DataType<T> type)
Add an
ADD COLUMN IF NOT EXISTS clause to the ALTER TABLE
statement. |
AlterTableAddStep |
addColumnIfNotExists(Name field,
DataType<?> type)
Add an
ADD COLUMN IF NOT EXISTS clause to the ALTER TABLE
statement. |
AlterTableAddStep |
addColumnIfNotExists(String field,
DataType<?> type)
Add an
ADD COLUMN IF NOT EXISTS clause to the ALTER TABLE
statement. |
AlterTableAddStep |
addIfNotExists(Field<?> field)
Add an
ADD COLUMN IF NOT EXISTS clause to the ALTER TABLE
statement. |
<T> AlterTableAddStep |
addIfNotExists(Field<T> field,
DataType<T> type)
Add an
ADD COLUMN IF NOT EXISTS clause to the ALTER TABLE
statement. |
AlterTableAddStep |
addIfNotExists(Name field,
DataType<?> type)
Add an
ADD COLUMN IF NOT EXISTS clause to the ALTER TABLE
statement. |
AlterTableAddStep |
addIfNotExists(String field,
DataType<?> type)
Add an
ADD COLUMN IF NOT EXISTS clause to the ALTER TABLE
statement. |
<T> AlterTableAlterStep<T> |
alter(Field<T> field)
Add an
ALTER COLUMN clause to the ALTER TABLE
statement. |
AlterTableAlterStep<Object> |
alter(Name field)
Add an
ALTER COLUMN clause to the ALTER TABLE
statement. |
AlterTableAlterStep<Object> |
alter(String field)
Add an
ALTER COLUMN clause to the ALTER TABLE
statement. |
<T> AlterTableAlterStep<T> |
alterColumn(Field<T> field)
Add an
ALTER COLUMN clause to the ALTER TABLE
statement. |
AlterTableAlterStep<Object> |
alterColumn(Name field)
Add an
ALTER COLUMN clause to the ALTER TABLE
statement. |
AlterTableAlterStep<Object> |
alterColumn(String field)
Add an
ALTER COLUMN clause to the ALTER TABLE
statement. |
AlterTableFinalStep |
comment(Comment comment)
Specify a comment for a table using MySQL's syntax.
|
AlterTableFinalStep |
comment(String comment)
Specify a comment for a table using MySQL's syntax.
|
AlterTableDropStep |
drop(Collection<? extends Field<?>> fields)
Add an
DROP COLUMN clause to the ALTER TABLE
statement. |
AlterTableDropStep |
drop(Constraint constraint)
Add a
DROP CONSTRAINT clause to the ALTER TABLE
statement. |
AlterTableDropStep |
drop(Field<?>... fields)
Add an
DROP COLUMN clause to the ALTER TABLE
statement. |
AlterTableDropStep |
drop(Field<?> field)
Add an
DROP COLUMN clause to the ALTER TABLE
statement. |
AlterTableDropStep |
drop(Name... fields)
Add an
DROP COLUMN clause to the ALTER TABLE
statement. |
AlterTableDropStep |
drop(Name field)
Add an
DROP COLUMN clause to the ALTER TABLE
statement. |
AlterTableDropStep |
drop(String... fields)
Add an
DROP COLUMN clause to the ALTER TABLE
statement. |
AlterTableDropStep |
drop(String field)
Add an
DROP COLUMN clause to the ALTER TABLE
statement. |
AlterTableDropStep |
dropColumn(Field<?> field)
Add an
DROP COLUMN clause to the ALTER TABLE
statement. |
AlterTableDropStep |
dropColumn(Name field)
Add an
DROP COLUMN clause to the ALTER TABLE
statement. |
AlterTableDropStep |
dropColumn(String field)
Add an
DROP COLUMN clause to the ALTER TABLE
statement. |
AlterTableDropStep |
dropColumnIfExists(Field<?> field)
Add an
DROP COLUMN IF EXISTS clause to the ALTER TABLE
statement. |
AlterTableDropStep |
dropColumnIfExists(Name field)
Add an
DROP COLUMN IF EXISTS clause to the ALTER TABLE
statement. |
AlterTableDropStep |
dropColumnIfExists(String field)
Add an
DROP COLUMN IF EXISTS clause to the ALTER TABLE
statement. |
AlterTableDropStep |
dropColumns(Collection<? extends Field<?>> fields)
Add an
DROP COLUMN clause to the ALTER TABLE
statement. |
AlterTableDropStep |
dropColumns(Field<?>... fields)
Add an
DROP COLUMN clause to the ALTER TABLE
statement. |
AlterTableDropStep |
dropColumns(Name... fields)
Add an
DROP COLUMN clause to the ALTER TABLE
statement. |
AlterTableDropStep |
dropColumns(String... fields)
Add an
DROP COLUMN clause to the ALTER TABLE
statement. |
AlterTableDropStep |
dropConstraint(Constraint constraint)
Add a
DROP CONSTRAINT clause to the ALTER TABLE
statement. |
AlterTableDropStep |
dropConstraint(Name constraint)
Add a
DROP CONSTRAINT clause to the ALTER TABLE
statement. |
AlterTableDropStep |
dropConstraint(String constraint)
Add a
DROP CONSTRAINT clause to the ALTER TABLE
statement. |
AlterTableDropStep |
dropConstraintIfExists(Constraint constraint)
Add a
DROP CONSTRAINT IF EXISTS clause to the ALTER TABLE
statement. |
AlterTableDropStep |
dropConstraintIfExists(Name constraint)
Add a
DROP CONSTRAINT IF EXISTS clause to the ALTER TABLE
statement. |
AlterTableDropStep |
dropConstraintIfExists(String constraint)
Add a
DROP CONSTRAINT IF EXISTS clause to the ALTER TABLE
statement. |
AlterTableDropStep |
dropForeignKey(Constraint constraint)
Add a
DROP FOREIGN KEY clause to the ALTER TABLE
statement. |
AlterTableDropStep |
dropForeignKey(Name constraint)
Add a
DROP FOREIGN KEY clause to the ALTER TABLE
statement. |
AlterTableDropStep |
dropForeignKey(String constraint)
Add a
DROP FOREIGN KEY clause to the ALTER TABLE
statement. |
AlterTableDropStep |
dropIfExists(Constraint constraint)
Add a
DROP CONSTRAINT IF EXISTS clause to the ALTER TABLE
statement. |
AlterTableDropStep |
dropIfExists(Field<?> field)
Add an
DROP COLUMN IF EXISTS clause to the
ALTER TABLE statement. |
AlterTableDropStep |
dropIfExists(Name field)
Add an
DROP COLUMN IF EXISTS clause to the
ALTER TABLE statement. |
AlterTableDropStep |
dropIfExists(String field)
Add an
DROP COLUMN IF EXISTS clause to the
ALTER TABLE statement. |
AlterTableDropStep |
dropPrimaryKey()
Add a
DROP PRIMARY KEY clause to the ALTER TABLE
statement. |
AlterTableDropStep |
dropPrimaryKey(Constraint constraint)
Add a
DROP PRIMARY KEY clause to the
ALTER TABLE statement. |
AlterTableDropStep |
dropPrimaryKey(Name constraint)
Add a
DROP PRIMARY KEY clause to the ALTER TABLE
statement. |
AlterTableDropStep |
dropPrimaryKey(String constraint)
Add a
DROP PRIMARY KEY clause to the ALTER TABLE
statement. |
AlterTableDropStep |
dropUnique(Constraint constraint)
Add a
DROP UNIQUE clause to the ALTER TABLE
statement. |
AlterTableDropStep |
dropUnique(Name constraint)
Add a
DROP UNIQUE clause to the ALTER TABLE
statement. |
AlterTableDropStep |
dropUnique(String constraint)
Add a
DROP UNIQUE clause to the ALTER TABLE
statement. |
AlterTableRenameColumnToStep |
renameColumn(Field<?> oldName)
Add a
RENAME COLUMN clause to the ALTER TABLE
statement. |
AlterTableRenameColumnToStep |
renameColumn(Name oldName)
Add a
RENAME COLUMN clause to the ALTER TABLE
statement. |
AlterTableRenameColumnToStep |
renameColumn(String oldName)
Add a
RENAME COLUMN clause to the ALTER TABLE
statement. |
AlterTableRenameConstraintToStep |
renameConstraint(Constraint oldName)
Add a
RENAME CONSTRAINT clause to the ALTER TABLE
statement. |
AlterTableRenameConstraintToStep |
renameConstraint(Name oldName)
Add a
RENAME CONSTRAINT clause to the ALTER TABLE
statement. |
AlterTableRenameConstraintToStep |
renameConstraint(String oldName)
Add a
RENAME CONSTRAINT clause to the ALTER TABLE
statement. |
AlterTableRenameIndexToStep |
renameIndex(Index oldName)
Add a
RENAME INDEX clause to the ALTER TABLE
statement. |
AlterTableRenameIndexToStep |
renameIndex(Name oldName)
Add a
RENAME INDEX clause to the ALTER TABLE
statement. |
AlterTableRenameIndexToStep |
renameIndex(String oldName)
Add a
RENAME INDEX clause to the ALTER TABLE
statement. |
AlterTableFinalStep |
renameTo(Name newName)
Add a
RENAME TO clause to the ALTER TABLE
statement. |
AlterTableFinalStep |
renameTo(String newName)
Add a
RENAME TO clause to the ALTER TABLE
statement. |
AlterTableFinalStep |
renameTo(Table<?> newName)
Add a
RENAME TO clause to the ALTER TABLE
statement. |
@Support(value={FIREBIRD,H2,HSQLDB,MARIADB,MYSQL,POSTGRES}) AlterTableFinalStep comment(String comment)
@Support(value={FIREBIRD,H2,HSQLDB,MARIADB,MYSQL,POSTGRES}) AlterTableFinalStep comment(Comment comment)
@Support AlterTableFinalStep renameTo(Table<?> newName)
RENAME TO
clause to the ALTER TABLE
statement.@Support AlterTableFinalStep renameTo(Name newName)
RENAME TO
clause to the ALTER TABLE
statement.@Support AlterTableFinalStep renameTo(String newName)
RENAME TO
clause to the ALTER TABLE
statement.@Support AlterTableRenameColumnToStep renameColumn(Field<?> oldName)
RENAME COLUMN
clause to the ALTER TABLE
statement.@Support AlterTableRenameColumnToStep renameColumn(Name oldName)
RENAME COLUMN
clause to the ALTER TABLE
statement.@Support AlterTableRenameColumnToStep renameColumn(String oldName)
RENAME COLUMN
clause to the ALTER TABLE
statement.@Support(value={DERBY,H2,HSQLDB,MYSQL,POSTGRES}) AlterTableRenameIndexToStep renameIndex(Name oldName)
RENAME INDEX
clause to the ALTER TABLE
statement.@Support(value={DERBY,H2,HSQLDB,MYSQL,POSTGRES}) AlterTableRenameIndexToStep renameIndex(Index oldName)
RENAME INDEX
clause to the ALTER TABLE
statement.@Support(value={DERBY,H2,HSQLDB,MYSQL,POSTGRES}) AlterTableRenameIndexToStep renameIndex(String oldName)
RENAME INDEX
clause to the ALTER TABLE
statement.@Support(value={CUBRID,DERBY,FIREBIRD,H2,HSQLDB,MARIADB,MYSQL,POSTGRES}) AlterTableRenameConstraintToStep renameConstraint(Constraint oldName)
RENAME CONSTRAINT
clause to the ALTER TABLE
statement.@Support(value={CUBRID,DERBY,FIREBIRD,H2,HSQLDB,MARIADB,MYSQL,POSTGRES}) AlterTableRenameConstraintToStep renameConstraint(Name oldName)
RENAME CONSTRAINT
clause to the ALTER TABLE
statement.@Support(value={CUBRID,DERBY,FIREBIRD,H2,HSQLDB,MARIADB,MYSQL,POSTGRES}) AlterTableRenameConstraintToStep renameConstraint(String oldName)
RENAME CONSTRAINT
clause to the ALTER TABLE
statement.@Support(value={CUBRID,DERBY,FIREBIRD,H2,HSQLDB,MARIADB,MYSQL,POSTGRES}) <T> AlterTableAlterStep<T> alter(Field<T> field)
@Support(value={CUBRID,DERBY,FIREBIRD,H2,HSQLDB,MARIADB,MYSQL,POSTGRES}) AlterTableAlterStep<Object> alter(Name field)
@Support(value={CUBRID,DERBY,FIREBIRD,H2,HSQLDB,MARIADB,MYSQL,POSTGRES}) AlterTableAlterStep<Object> alter(String field)
@Support(value={CUBRID,DERBY,FIREBIRD,H2,HSQLDB,MARIADB,MYSQL,POSTGRES}) <T> AlterTableAlterStep<T> alterColumn(Field<T> field)
ALTER COLUMN
clause to the ALTER TABLE
statement.@Support(value={CUBRID,DERBY,FIREBIRD,H2,HSQLDB,MARIADB,MYSQL,POSTGRES}) AlterTableAlterStep<Object> alterColumn(Name field)
ALTER COLUMN
clause to the ALTER TABLE
statement.@Support(value={CUBRID,DERBY,FIREBIRD,H2,HSQLDB,MARIADB,MYSQL,POSTGRES}) AlterTableAlterStep<Object> alterColumn(String field)
ALTER COLUMN
clause to the ALTER TABLE
statement.@Support AlterTableAddStep add(Field<?> field)
@Support(value={FIREBIRD,H2,MARIADB,MYSQL,POSTGRES}) AlterTableAddStep add(FieldOrConstraint... fields)
ADD
clause with multiple columns or constraints to
the ALTER TABLE
statement.@Support(value={FIREBIRD,H2,MARIADB,MYSQL,POSTGRES}) AlterTableAddStep add(Collection<? extends FieldOrConstraint> fields)
ADD
clause with multiple columns or constraints to
the ALTER TABLE
statement.@Support <T> AlterTableAddStep add(Field<T> field, DataType<T> type)
ADD COLUMN
clause to the ALTER TABLE
statement.
This is an alias for addColumn(Field, DataType)
.
@Support AlterTableAddStep add(Name field, DataType<?> type)
ADD COLUMN
clause to the ALTER TABLE
statement.
This is an alias for addColumn(Name, DataType)
.
@Support AlterTableAddStep add(String field, DataType<?> type)
ADD COLUMN
clause to the ALTER TABLE
statement.
This is an alias for addColumn(String, DataType)
.
@Support(value={H2,MARIADB,POSTGRES}) AlterTableAddStep addIfNotExists(Field<?> field)
ADD COLUMN IF NOT EXISTS
clause to the ALTER TABLE
statement.
This is an alias for addColumnIfNotExists(Field)
.
@Support(value={H2,MARIADB,POSTGRES}) <T> AlterTableAddStep addIfNotExists(Field<T> field, DataType<T> type)
ADD COLUMN IF NOT EXISTS
clause to the ALTER TABLE
statement.
This is an alias for addColumnIfNotExists(Field, DataType)
.
@Support(value={H2,MARIADB,POSTGRES}) AlterTableAddStep addIfNotExists(Name field, DataType<?> type)
ADD COLUMN IF NOT EXISTS
clause to the ALTER TABLE
statement.
This is an alias for addColumnIfNotExists(Name, DataType)
.
@Support(value={H2,MARIADB,POSTGRES}) AlterTableAddStep addIfNotExists(String field, DataType<?> type)
ADD COLUMN IF NOT EXISTS
clause to the ALTER TABLE
statement.
This is an alias for addColumnIfNotExists(String, DataType)
.
@Support AlterTableAddStep addColumn(Field<?> field)
ADD COLUMN
clause to the ALTER TABLE
statement.@Support <T> AlterTableAddStep addColumn(Field<T> field, DataType<T> type)
ADD COLUMN
clause to the ALTER TABLE
statement.@Support AlterTableAddStep addColumn(Name field, DataType<?> type)
ADD COLUMN
clause to the ALTER TABLE
statement.@Support AlterTableAddStep addColumn(String field, DataType<?> type)
ADD COLUMN
clause to the ALTER TABLE
statement.@Support(value={H2,MARIADB,POSTGRES}) AlterTableAddStep addColumnIfNotExists(Field<?> field)
ADD COLUMN IF NOT EXISTS
clause to the ALTER TABLE
statement.@Support(value={H2,MARIADB,POSTGRES}) <T> AlterTableAddStep addColumnIfNotExists(Field<T> field, DataType<T> type)
ADD COLUMN IF NOT EXISTS
clause to the ALTER TABLE
statement.@Support(value={H2,MARIADB,POSTGRES}) AlterTableAddStep addColumnIfNotExists(Name field, DataType<?> type)
ADD COLUMN IF NOT EXISTS
clause to the ALTER TABLE
statement.@Support(value={H2,MARIADB,POSTGRES}) AlterTableAddStep addColumnIfNotExists(String field, DataType<?> type)
ADD COLUMN IF NOT EXISTS
clause to the ALTER TABLE
statement.@Support(value={CUBRID,DERBY,FIREBIRD,H2,HSQLDB,MARIADB,MYSQL,POSTGRES}) AlterTableUsingIndexStep add(Constraint constraint)
ADD CONSTRAINT
clause to the ALTER TABLE
statement.@Support(value={CUBRID,DERBY,FIREBIRD,H2,HSQLDB,MARIADB,MYSQL,POSTGRES}) AlterTableDropStep drop(Field<?> field)
@Support(value={CUBRID,DERBY,FIREBIRD,H2,HSQLDB,MARIADB,MYSQL,POSTGRES}) AlterTableDropStep drop(Name field)
@Support(value={CUBRID,DERBY,FIREBIRD,H2,HSQLDB,MARIADB,MYSQL,POSTGRES}) AlterTableDropStep drop(String field)
@Support(value={H2,MARIADB,POSTGRES}) AlterTableDropStep dropIfExists(Field<?> field)
DROP COLUMN IF EXISTS
clause to the
ALTER TABLE
statement.
This is an alias for dropColumnIfExists(Field)
.
@Support(value={H2,MARIADB,POSTGRES}) AlterTableDropStep dropIfExists(Name field)
DROP COLUMN IF EXISTS
clause to the
ALTER TABLE
statement.
This is an alias for dropColumnIfExists(Name)
.
@Support(value={H2,MARIADB,POSTGRES}) AlterTableDropStep dropIfExists(String field)
DROP COLUMN IF EXISTS
clause to the
ALTER TABLE
statement.
This is an alias for dropColumnIfExists(String)
.
@Support(value={CUBRID,DERBY,FIREBIRD,H2,HSQLDB,MARIADB,MYSQL,POSTGRES}) AlterTableDropStep dropColumn(Field<?> field)
DROP COLUMN
clause to the ALTER TABLE
statement.@Support(value={CUBRID,DERBY,FIREBIRD,H2,HSQLDB,MARIADB,MYSQL,POSTGRES}) AlterTableDropStep dropColumn(Name field)
DROP COLUMN
clause to the ALTER TABLE
statement.@Support(value={CUBRID,DERBY,FIREBIRD,H2,HSQLDB,MARIADB,MYSQL,POSTGRES}) AlterTableDropStep dropColumn(String field)
DROP COLUMN
clause to the ALTER TABLE
statement.@Support(value={H2,MARIADB,POSTGRES}) AlterTableDropStep dropColumnIfExists(Field<?> field)
DROP COLUMN IF EXISTS
clause to the ALTER TABLE
statement.@Support(value={H2,MARIADB,POSTGRES}) AlterTableDropStep dropColumnIfExists(Name field)
DROP COLUMN IF EXISTS
clause to the ALTER TABLE
statement.@Support(value={H2,MARIADB,POSTGRES}) AlterTableDropStep dropColumnIfExists(String field)
DROP COLUMN IF EXISTS
clause to the ALTER TABLE
statement.@Support(value={FIREBIRD,H2,MARIADB,MYSQL,POSTGRES}) AlterTableDropStep drop(Field<?>... fields)
DROP COLUMN
clause to the ALTER TABLE
statement.
This is an alias for dropColumns(Collection)
.
@Support(value={FIREBIRD,H2,MARIADB,MYSQL,POSTGRES}) AlterTableDropStep drop(Name... fields)
DROP COLUMN
clause to the ALTER TABLE
statement.
This is an alias for dropColumns(Collection)
.
@Support(value={FIREBIRD,H2,MARIADB,MYSQL,POSTGRES}) AlterTableDropStep drop(String... fields)
DROP COLUMN
clause to the ALTER TABLE
statement.
This is an alias for dropColumns(Collection)
.
@Support(value={FIREBIRD,H2,MARIADB,MYSQL,POSTGRES}) AlterTableDropStep dropColumns(Field<?>... fields)
DROP COLUMN
clause to the ALTER TABLE
statement.@Support(value={FIREBIRD,H2,MARIADB,MYSQL,POSTGRES}) AlterTableDropStep dropColumns(Name... fields)
DROP COLUMN
clause to the ALTER TABLE
statement.@Support(value={FIREBIRD,H2,MARIADB,MYSQL,POSTGRES}) AlterTableDropStep dropColumns(String... fields)
DROP COLUMN
clause to the ALTER TABLE
statement.@Support(value={FIREBIRD,H2,MARIADB,MYSQL,POSTGRES}) AlterTableDropStep drop(Collection<? extends Field<?>> fields)
DROP COLUMN
clause to the ALTER TABLE
statement.
This is an alias for dropColumns(Collection)
.
@Support(value={FIREBIRD,H2,MARIADB,MYSQL,POSTGRES}) AlterTableDropStep dropColumns(Collection<? extends Field<?>> fields)
DROP COLUMN
clause to the ALTER TABLE
statement.@Support(value={CUBRID,DERBY,FIREBIRD,H2,HSQLDB,MARIADB,POSTGRES}) AlterTableDropStep drop(Constraint constraint)
DROP CONSTRAINT
clause to the ALTER TABLE
statement.@Support(value={CUBRID,DERBY,FIREBIRD,H2,HSQLDB,MARIADB,POSTGRES}) AlterTableDropStep dropConstraint(Constraint constraint)
DROP CONSTRAINT
clause to the ALTER TABLE
statement.DSL.constraint(String)
@Support(value={CUBRID,DERBY,FIREBIRD,H2,HSQLDB,MARIADB,POSTGRES}) AlterTableDropStep dropConstraint(Name constraint)
DROP CONSTRAINT
clause to the ALTER TABLE
statement.DSL.constraint(String)
@Support(value={CUBRID,DERBY,FIREBIRD,H2,HSQLDB,MARIADB,POSTGRES}) AlterTableDropStep dropConstraint(String constraint)
DROP CONSTRAINT
clause to the ALTER TABLE
statement.DSL.constraint(String)
@Support(value={H2,POSTGRES}) AlterTableDropStep dropIfExists(Constraint constraint)
DROP CONSTRAINT IF EXISTS
clause to the ALTER TABLE
statement.@Support(value={H2,POSTGRES}) AlterTableDropStep dropConstraintIfExists(Constraint constraint)
DROP CONSTRAINT IF EXISTS
clause to the ALTER TABLE
statement.DSL.constraint(String)
@Support(value={H2,POSTGRES}) AlterTableDropStep dropConstraintIfExists(Name constraint)
DROP CONSTRAINT IF EXISTS
clause to the ALTER TABLE
statement.DSL.constraint(String)
@Support(value={H2,POSTGRES}) AlterTableDropStep dropConstraintIfExists(String constraint)
DROP CONSTRAINT IF EXISTS
clause to the ALTER TABLE
statement.DSL.constraint(String)
@Support(value={DERBY,H2,HSQLDB,MARIADB,MYSQL}) AlterTableDropStep dropPrimaryKey()
DROP PRIMARY KEY
clause to the ALTER TABLE
statement.@Support(value={CUBRID,DERBY,FIREBIRD,H2,HSQLDB,MARIADB,MYSQL,POSTGRES}) AlterTableDropStep dropPrimaryKey(Constraint constraint)
DROP PRIMARY KEY
clause to the
ALTER TABLE
statement.
Dialect families derived from MySQL do not know named constraints, in
case of which this clause simply generates DROP PRIMARY KEY
as in dropPrimaryKey()
. In other dialect families, this produces
a DROP CONSTRAINT [name]
clause, as in
dropConstraint(Constraint)
.
@Support(value={CUBRID,DERBY,FIREBIRD,H2,HSQLDB,MARIADB,MYSQL,POSTGRES}) AlterTableDropStep dropPrimaryKey(Name constraint)
DROP PRIMARY KEY
clause to the ALTER TABLE
statement.
Dialect families derived from MySQL do not know named constraints, in
case of which this clause simply generates DROP PRIMARY KEY
as in dropPrimaryKey()
. In other dialect families, this produces
a DROP CONSTRAINT [name]
clause, as in
dropConstraint(Name)
.
DSL.constraint(Name)
@Support(value={CUBRID,DERBY,FIREBIRD,H2,HSQLDB,MARIADB,MYSQL,POSTGRES}) AlterTableDropStep dropPrimaryKey(String constraint)
DROP PRIMARY KEY
clause to the ALTER TABLE
statement.
Dialect families derived from MySQL do not know named constraints, in
case of which this clause simply generates DROP PRIMARY KEY
as in dropPrimaryKey()
. In other dialect families, this produces
a DROP CONSTRAINT [name]
clause, as in
dropConstraint(String)
.
DSL.constraint(String)
@Support(value={CUBRID,DERBY,FIREBIRD,H2,HSQLDB,MARIADB,MYSQL,POSTGRES}) AlterTableDropStep dropUnique(Constraint constraint)
DROP UNIQUE
clause to the ALTER 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.
using DROP INDEX .. CASCADE
.
@Support(value={CUBRID,DERBY,FIREBIRD,H2,HSQLDB,MARIADB,MYSQL,POSTGRES}) AlterTableDropStep dropUnique(Name constraint)
DROP UNIQUE
clause to the ALTER 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.
using DROP INDEX .. CASCADE
.
DSL.constraint(Name)
@Support(value={CUBRID,DERBY,FIREBIRD,H2,HSQLDB,MARIADB,MYSQL,POSTGRES}) AlterTableDropStep dropUnique(String constraint)
DROP UNIQUE
clause to the ALTER 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.
using DROP INDEX .. CASCADE
.
DSL.constraint(String)
@Support(value={CUBRID,DERBY,FIREBIRD,H2,HSQLDB,MARIADB,MYSQL,POSTGRES}) AlterTableDropStep dropForeignKey(Constraint constraint)
DROP FOREIGN KEY
clause to the ALTER TABLE
statement.@Support(value={CUBRID,DERBY,FIREBIRD,H2,HSQLDB,MARIADB,MYSQL,POSTGRES}) AlterTableDropStep dropForeignKey(Name constraint)
DROP FOREIGN KEY
clause to the ALTER TABLE
statement.DSL.constraint(Name)
Copyright © 2020. All rights reserved.