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 |
|---|---|
| public @NotNull AlterTableAddStep | add(Field<?> field)
Deprecated
as a consequence of
Add an Field and AlterTableAddStep being deprecated.
ADD COLUMN clause to the ALTER TABLE
statement.
|
| public @NotNull AlterTableAddStep | add(TableElement... fields)
Deprecated
as a consequence of
Add an AlterTableAddStep being deprecated.
ADD clause with multiple columns or constraints to
the ALTER TABLE statement.
|
| public @NotNull AlterTableAddStep | add(Collection<? extends TableElement> fields)
Deprecated
as a consequence of
Add an AlterTableAddStep being deprecated.
ADD clause with multiple columns or constraints to
the ALTER TABLE statement.
|
| public <T> @NotNull AlterTableAddStep | add(Field<T> field, DataType<T> type)
Deprecated
as a consequence of
Add an Field and AlterTableAddStep being deprecated.
ADD COLUMN clause to the ALTER TABLE
statement.
|
| public @NotNull AlterTableAddStep | add(Name field, DataType<?> type)
Deprecated
as a consequence of
Add an AlterTableAddStep being deprecated.
ADD COLUMN clause to the ALTER TABLE
statement.
|
| public @NotNull AlterTableAddStep | add(String field, DataType<?> type)
Deprecated
as a consequence of
Add an AlterTableAddStep being deprecated.
ADD COLUMN clause to the ALTER TABLE
statement.
|
| public @NotNull AlterTableUsingIndexStep | add(Constraint constraint)
Deprecated
as a consequence of
Add an Constraint and AlterTableUsingIndexStep being deprecated.
ADD CONSTRAINT clause to the ALTER TABLE
statement.
|
| public @NotNull AlterTableAddStep | addColumn(Field<?> field)
Deprecated
as a consequence of
Add an Field and AlterTableAddStep being deprecated.
ADD COLUMN clause to the ALTER TABLE
statement.
|
| public <T> @NotNull AlterTableAddStep | addColumn(Field<T> field, DataType<T> type)
Deprecated
as a consequence of
Add an Field and AlterTableAddStep being deprecated.
ADD COLUMN clause to the ALTER TABLE
statement.
|
| public @NotNull AlterTableAddStep | addColumn(Name field, DataType<?> type)
Deprecated
as a consequence of
Add an AlterTableAddStep being deprecated.
ADD COLUMN clause to the ALTER TABLE
statement.
|
| public @NotNull AlterTableAddStep | addColumn(String field, DataType<?> type)
Deprecated
as a consequence of
Add an AlterTableAddStep being deprecated.
ADD COLUMN clause to the ALTER TABLE
statement.
|
| public @NotNull AlterTableAddStep | addColumnIfNotExists(Field<?> field)
Deprecated
as a consequence of
Add an Field and AlterTableAddStep being deprecated.
ADD COLUMN IF NOT EXISTS clause to the ALTER TABLE
statement.
|
| public <T> @NotNull AlterTableAddStep | addColumnIfNotExists(Field<T> field, DataType<T> type)
Deprecated
as a consequence of
Add an Field and AlterTableAddStep being deprecated.
ADD COLUMN IF NOT EXISTS clause to the ALTER TABLE
statement.
|
| public @NotNull AlterTableAddStep | addColumnIfNotExists(Name field, DataType<?> type)
Deprecated
as a consequence of
Add an AlterTableAddStep being deprecated.
ADD COLUMN IF NOT EXISTS clause to the ALTER TABLE
statement.
|
| public @NotNull AlterTableAddStep | addColumnIfNotExists(String field, DataType<?> type)
Deprecated
as a consequence of
Add an AlterTableAddStep being deprecated.
ADD COLUMN IF NOT EXISTS clause to the ALTER TABLE
statement.
|
| public @NotNull AlterTableAddStep | addIfNotExists(Field<?> field)
Deprecated
as a consequence of
Add an Field and AlterTableAddStep being deprecated.
ADD COLUMN IF NOT EXISTS clause to the ALTER TABLE
statement.
|
| public <T> @NotNull AlterTableAddStep | addIfNotExists(Field<T> field, DataType<T> type)
Deprecated
as a consequence of
Add an Field and AlterTableAddStep being deprecated.
ADD COLUMN IF NOT EXISTS clause to the ALTER TABLE
statement.
|
| public @NotNull AlterTableAddStep | addIfNotExists(Name field, DataType<?> type)
Deprecated
as a consequence of
Add an AlterTableAddStep being deprecated.
ADD COLUMN IF NOT EXISTS clause to the ALTER TABLE
statement.
|
| public @NotNull AlterTableAddStep | addIfNotExists(String field, DataType<?> type)
Deprecated
as a consequence of
Add an AlterTableAddStep being deprecated.
ADD COLUMN IF NOT EXISTS clause to the ALTER TABLE
statement.
|
| public @NotNull AlterTableAlterConstraintStep | alter(Constraint constraint)
Deprecated
as a consequence of
Add an Constraint being deprecated.
ALTER CONSTRAINT clause to the ALTER TABLE
statement.
|
| public <T> @NotNull AlterTableAlterStep | |
| public @NotNull AlterTableAlterStep | |
| public @NotNull AlterTableAlterStep | |
| public <T> @NotNull AlterTableAlterStep | alterColumn(Field<T> field)
Deprecated
as a consequence of
Add an Field being deprecated.
ALTER COLUMN clause to the ALTER TABLE
statement.
|
| public @NotNull AlterTableAlterStep | |
| public @NotNull AlterTableAlterStep | |
| public @NotNull AlterTableAlterConstraintStep | alterConstraint(Constraint constraint)
Deprecated
as a consequence of
Add an Constraint being deprecated.
ALTER CONSTRAINT clause to the ALTER TABLE
statement.
|
| public @NotNull AlterTableAlterConstraintStep | |
| public @NotNull AlterTableAlterConstraintStep | |
| public @NotNull AlterTableFinalStep | comment(String comment)
Deprecated
as a consequence of
Specify a comment for a table using MySQL's syntax.
AlterTableFinalStep being deprecated.
|
| public @NotNull AlterTableFinalStep | comment(Comment comment)
Deprecated
as a consequence of
Specify a comment for a table using MySQL's syntax.
AlterTableFinalStep being deprecated.
|
| public @NotNull AlterTableDropStep | drop(Field<?> field)
Deprecated
as a consequence of
Add an Field and AlterTableDropStep being deprecated.
DROP COLUMN clause to the ALTER TABLE
statement.
|
| public @NotNull AlterTableDropStep | drop(Name field)
Deprecated
as a consequence of
Add an AlterTableDropStep being deprecated.
DROP COLUMN clause to the ALTER TABLE
statement.
|
| public @NotNull AlterTableDropStep | drop(String field)
Deprecated
as a consequence of
Add an AlterTableDropStep being deprecated.
DROP COLUMN clause to the ALTER TABLE
statement.
|
| public @NotNull AlterTableDropStep | drop(Field<?>... fields)
Deprecated
as a consequence of
Add an Field and AlterTableDropStep being deprecated.
DROP COLUMN clause to the ALTER TABLE
statement.
|
| public @NotNull AlterTableDropStep | drop(Name... fields)
Deprecated
as a consequence of
Add an AlterTableDropStep being deprecated.
DROP COLUMN clause to the ALTER TABLE
statement.
|
| public @NotNull AlterTableDropStep | drop(String... fields)
Deprecated
as a consequence of
Add an AlterTableDropStep being deprecated.
DROP COLUMN clause to the ALTER TABLE
statement.
|
| public @NotNull AlterTableDropStep | drop(Collection<? extends Field<?>> fields)
Deprecated
as a consequence of
Add an AlterTableDropStep being deprecated.
DROP COLUMN clause to the ALTER TABLE
statement.
|
| public @NotNull AlterTableDropStep | drop(Constraint constraint)
Deprecated
as a consequence of
Add a Constraint and AlterTableDropStep being deprecated.
DROP CONSTRAINT clause to the ALTER TABLE
statement.
|
| public @NotNull AlterTableDropStep | dropColumn(Field<?> field)
Deprecated
as a consequence of
Add an Field and AlterTableDropStep being deprecated.
DROP COLUMN clause to the ALTER TABLE
statement.
|
| public @NotNull AlterTableDropStep | dropColumn(Name field)
Deprecated
as a consequence of
Add an AlterTableDropStep being deprecated.
DROP COLUMN clause to the ALTER TABLE
statement.
|
| public @NotNull AlterTableDropStep | dropColumn(String field)
Deprecated
as a consequence of
Add an AlterTableDropStep being deprecated.
DROP COLUMN clause to the ALTER TABLE
statement.
|
| public @NotNull AlterTableDropStep | dropColumnIfExists(Field<?> field)
Deprecated
as a consequence of
Add an Field and AlterTableDropStep being deprecated.
DROP COLUMN IF EXISTS clause to the ALTER TABLE
statement.
|
| public @NotNull AlterTableDropStep | dropColumnIfExists(Name field)
Deprecated
as a consequence of
Add an AlterTableDropStep being deprecated.
DROP COLUMN IF EXISTS clause to the ALTER TABLE
statement.
|
| public @NotNull AlterTableDropStep | dropColumnIfExists(String field)
Deprecated
as a consequence of
Add an AlterTableDropStep being deprecated.
DROP COLUMN IF EXISTS clause to the ALTER TABLE
statement.
|
| public @NotNull AlterTableDropStep | dropColumns(Field<?>... fields)
Deprecated
as a consequence of
Add an Field and AlterTableDropStep being deprecated.
DROP COLUMN clause to the ALTER TABLE
statement.
|
| public @NotNull AlterTableDropStep | dropColumns(Name... fields)
Deprecated
as a consequence of
Add an AlterTableDropStep being deprecated.
DROP COLUMN clause to the ALTER TABLE
statement.
|
| public @NotNull AlterTableDropStep | dropColumns(String... fields)
Deprecated
as a consequence of
Add an AlterTableDropStep being deprecated.
DROP COLUMN clause to the ALTER TABLE
statement.
|
| public @NotNull AlterTableDropStep | dropColumns(Collection<? extends Field<?>> fields)
Deprecated
as a consequence of
Add an AlterTableDropStep being deprecated.
DROP COLUMN clause to the ALTER TABLE
statement.
|
| public @NotNull AlterTableDropStep | dropConstraint(Constraint constraint)
Deprecated
as a consequence of
Add a Constraint and AlterTableDropStep being deprecated.
DROP CONSTRAINT clause to the ALTER TABLE
statement.
|
| public @NotNull AlterTableDropStep | dropConstraint(Name constraint)
Deprecated
as a consequence of
Add a AlterTableDropStep being deprecated.
DROP CONSTRAINT clause to the ALTER TABLE
statement.
|
| public @NotNull AlterTableDropStep | dropConstraint(String constraint)
Deprecated
as a consequence of
Add a AlterTableDropStep being deprecated.
DROP CONSTRAINT clause to the ALTER TABLE
statement.
|
| public @NotNull AlterTableDropStep | dropConstraintIfExists(Constraint constraint)
Deprecated
as a consequence of
Add a Constraint and AlterTableDropStep being deprecated.
DROP CONSTRAINT IF EXISTS clause to the ALTER TABLE
statement.
|
| public @NotNull AlterTableDropStep | dropConstraintIfExists(Name constraint)
Deprecated
as a consequence of
Add a AlterTableDropStep being deprecated.
DROP CONSTRAINT IF EXISTS clause to the ALTER TABLE
statement.
|
| public @NotNull AlterTableDropStep | dropConstraintIfExists(String constraint)
Deprecated
as a consequence of
Add a AlterTableDropStep being deprecated.
DROP CONSTRAINT IF EXISTS clause to the ALTER TABLE
statement.
|
| public @NotNull AlterTableDropStep | dropForeignKey(Constraint constraint)
Deprecated
as a consequence of
Add a Constraint and AlterTableDropStep being deprecated.
DROP FOREIGN KEY clause to the ALTER TABLE
statement.
|
| public @NotNull AlterTableDropStep | dropForeignKey(Name constraint)
Deprecated
as a consequence of
Add a AlterTableDropStep being deprecated.
DROP FOREIGN KEY clause to the ALTER TABLE
statement.
|
| public @NotNull AlterTableDropStep | dropForeignKey(String constraint)
Deprecated
as a consequence of
Add a AlterTableDropStep being deprecated.
DROP FOREIGN KEY clause to the ALTER TABLE
statement.
|
| public @NotNull AlterTableDropStep | dropIfExists(Field<?> field)
Deprecated
as a consequence of
Add an Field and AlterTableDropStep being deprecated.
DROP COLUMN IF EXISTS clause to the
ALTER TABLE statement.
|
| public @NotNull AlterTableDropStep | dropIfExists(Name field)
Deprecated
as a consequence of
Add an AlterTableDropStep being deprecated.
DROP COLUMN IF EXISTS clause to the
ALTER TABLE statement.
|
| public @NotNull AlterTableDropStep | dropIfExists(String field)
Deprecated
as a consequence of
Add an AlterTableDropStep being deprecated.
DROP COLUMN IF EXISTS clause to the
ALTER TABLE statement.
|
| public @NotNull AlterTableDropStep | dropIfExists(Constraint constraint)
Deprecated
as a consequence of
Add a Constraint and AlterTableDropStep being deprecated.
DROP CONSTRAINT IF EXISTS clause to the ALTER TABLE
statement.
|
| public @NotNull AlterTableDropStep | dropPrimaryKey()
Deprecated
as a consequence of
Add a AlterTableDropStep being deprecated.
DROP PRIMARY KEY clause to the ALTER TABLE
statement.
|
| public @NotNull AlterTableDropStep | dropPrimaryKey(Constraint constraint)
Deprecated
as a consequence of
Add a Constraint and AlterTableDropStep being deprecated.
DROP PRIMARY KEY clause to the
ALTER TABLE statement.
|
| public @NotNull AlterTableDropStep | dropPrimaryKey(Name constraint)
Deprecated
as a consequence of
Add a AlterTableDropStep being deprecated.
DROP PRIMARY KEY clause to the ALTER TABLE
statement.
|
| public @NotNull AlterTableDropStep | dropPrimaryKey(String constraint)
Deprecated
as a consequence of
Add a AlterTableDropStep being deprecated.
DROP PRIMARY KEY clause to the ALTER TABLE
statement.
|
| public @NotNull AlterTableDropStep | dropUnique(Constraint constraint)
Deprecated
as a consequence of
Add a Constraint and AlterTableDropStep being deprecated.
DROP UNIQUE clause to the ALTER TABLE
statement.
|
| public @NotNull AlterTableDropStep | dropUnique(Name constraint)
Deprecated
as a consequence of
Add a AlterTableDropStep being deprecated.
DROP UNIQUE clause to the ALTER TABLE
statement.
|
| public @NotNull AlterTableDropStep | dropUnique(String constraint)
Deprecated
as a consequence of
Add a AlterTableDropStep being deprecated.
DROP UNIQUE clause to the ALTER TABLE
statement.
|
| public @NotNull AlterTableRenameColumnToStep | renameColumn(Field<?> oldName)
Deprecated
as a consequence of
Add a Field being deprecated.
RENAME COLUMN clause to the ALTER TABLE
statement.
|
| public @NotNull AlterTableRenameColumnToStep | |
| public @NotNull AlterTableRenameColumnToStep | |
| public @NotNull AlterTableRenameConstraintToStep | renameConstraint(Constraint oldName)
Deprecated
as a consequence of
Add a Constraint being deprecated.
RENAME CONSTRAINT clause to the ALTER TABLE
statement.
|
| public @NotNull AlterTableRenameConstraintToStep | |
| public @NotNull AlterTableRenameConstraintToStep | |
| public @NotNull AlterTableRenameIndexToStep | |
| public @NotNull AlterTableRenameIndexToStep | |
| public @NotNull AlterTableRenameIndexToStep | |
| public @NotNull AlterTableFinalStep | renameTo(Table<?> newName)
Deprecated
as a consequence of
Add a AlterTableFinalStep being deprecated.
RENAME TO clause to the ALTER TABLE
statement.
|
| public @NotNull AlterTableFinalStep | renameTo(Name newName)
Deprecated
as a consequence of
Add a AlterTableFinalStep being deprecated.
RENAME TO clause to the ALTER TABLE
statement.
|
| public @NotNull AlterTableFinalStep | renameTo(String newName)
Deprecated
as a consequence of
Add a AlterTableFinalStep being deprecated.
RENAME TO clause to the ALTER TABLE
statement.
|