primaryKey
@Support
@NotNull
@CheckReturnValue
@NotNull CreateTableElementListStep primaryKey(String... fields)
Add the
PRIMARY KEY clause to the CREATE TABLE statement.Attachable, AttachableQueryPart, CreateTableAsStep, CreateTableCommentStep, CreateTableFinalStep, CreateTableOnCommitStep, CreateTableStorageStep, DDLQuery, Flow.Publisher<Integer>, Publisher<Integer>, org.reactivestreams.Publisher<Integer>, Query, QueryPart, RowCountQuery, Serializable, StatementCREATE TABLE statement.
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:
@NotNull CreateTableElementListStepCHECK clause to the CREATE TABLE statement.@NotNull CreateTableElementListStepCOLUMN clause to the CREATE TABLE statement.@NotNull CreateTableElementListStepCOLUMN clause to the CREATE TABLE statement.@NotNull CreateTableElementListStepCOLUMN clause to the CREATE TABLE statement.@NotNull CreateTableElementListStepCOLUMN clause to the CREATE TABLE statement.@NotNull CreateTableElementListStepCOLUMNS clause to the CREATE TABLE statement.@NotNull CreateTableElementListStepcolumns(Collection<? extends Field<?>> columns) COLUMNS clause to the CREATE TABLE statement.@NotNull CreateTableElementListStepCOLUMNS clause to the CREATE TABLE statement.@NotNull CreateTableElementListStepCOLUMNS clause to the CREATE TABLE statement.@NotNull CreateTableElementListStepconstraint(Constraint constraint) CONSTRAINT clause to the CREATE TABLE statement.@NotNull CreateTableElementListStepconstraints(Collection<? extends Constraint> constraints) CONSTRAINTS clause to the CREATE TABLE statement.@NotNull CreateTableElementListStepconstraints(Constraint... constraints) CONSTRAINTS clause to the CREATE TABLE statement.@NotNull CreateTableElementListStepINDEX clause to the CREATE TABLE statement.@NotNull CreateTableElementListStepindexes(Collection<? extends Index> indexes) INDEXES clause to the CREATE TABLE statement.@NotNull CreateTableElementListStepINDEXES clause to the CREATE TABLE statement.@NotNull CreateTableElementListStepprimaryKey(String... fields) PRIMARY KEY clause to the CREATE TABLE statement.@NotNull CreateTableElementListStepprimaryKey(Collection<? extends Field<?>> fields) PRIMARY KEY clause to the CREATE TABLE statement.@NotNull CreateTableElementListStepprimaryKey(Field<?>... fields) PRIMARY KEY clause to the CREATE TABLE statement.@NotNull CreateTableElementListStepprimaryKey(Name... fields) PRIMARY KEY clause to the CREATE TABLE statement.@NotNull CreateTableElementListSteptableElements(Collection<? extends TableElement> tableElements) TABLE ELEMENTS clause to the CREATE TABLE statement.@NotNull CreateTableElementListSteptableElements(TableElement... tableElements) TABLE ELEMENTS clause to the CREATE TABLE statement.@NotNull CreateTableElementListStepUNIQUE clause to the CREATE TABLE statement.@NotNull CreateTableElementListStepunique(Collection<? extends Field<?>> fields) UNIQUE clause to the CREATE TABLE statement.@NotNull CreateTableElementListStepUNIQUE clause to the CREATE TABLE statement.@NotNull CreateTableElementListStepUNIQUE clause to the CREATE TABLE statement.attach, configuration, detachgetBindValues, getParam, getParams, getSQL, getSQLascomment, commentonCommitDeleteRows, onCommitDrop, onCommitPreserveRowsstorage, storage, storage, storagesubscribebind, bind, cancel, execute, executeAsync, executeAsync, isExecutable, keepStatement, poolable, queryTimeoutTABLE ELEMENTS clause to the CREATE TABLE statement.TABLE ELEMENTS clause to the CREATE TABLE statement.COLUMNS clause to the CREATE TABLE statement.COLUMNS clause to the CREATE TABLE statement.COLUMNS clause to the CREATE TABLE statement.COLUMNS clause to the CREATE TABLE statement.COLUMN clause to the CREATE TABLE statement.COLUMN clause to the CREATE TABLE statement.COLUMN clause to the CREATE TABLE statement.COLUMN clause to the CREATE TABLE statement.CONSTRAINTS clause to the CREATE TABLE statement.CONSTRAINTS clause to the CREATE TABLE statement.CONSTRAINT clause to the CREATE TABLE statement.PRIMARY KEY clause to the CREATE TABLE statement.PRIMARY KEY clause to the CREATE TABLE statement.PRIMARY KEY clause to the CREATE TABLE statement.PRIMARY KEY clause to the CREATE TABLE statement.UNIQUE clause to the CREATE TABLE statement.UNIQUE clause to the CREATE TABLE statement.UNIQUE clause to the CREATE TABLE statement.UNIQUE clause to the CREATE TABLE statement.CHECK clause to the CREATE TABLE statement.INDEXES clause to the CREATE TABLE statement.INDEXES clause to the CREATE TABLE statement.INDEX clause to the CREATE TABLE statement.