- All Known Subinterfaces:
MergeColumnsStep<R>
,MergeKeyStepN<R>
,MergeUsingStep<R>
Deprecated, for removal: This API element is subject to removal in a future version.
This type is used for the H2-specific variant of the
Merge
's DSL API.
Example:
DSLContext create = DSL.using(configuration);
create.mergeInto(table, field1, field2)
.key(id)
.values(value1, value2)
.execute();
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Use aSELECT
statement as the source of values for theMERGE
statementDeprecated, for removal: This API element is subject to removal in a future version.Specify aVALUES
clausevalues
(Collection<?> values) Deprecated, for removal: This API element is subject to removal in a future version.Specify aVALUES
clauseDeprecated, for removal: This API element is subject to removal in a future version.Specify aVALUES
clause
-
Method Details
-
values
@NotNull @CheckReturnValue @Support({AURORA_MYSQL,AURORA_POSTGRES,CUBRID,DATABRICKS,DB2,DERBY,EXASOL,FIREBIRD_3_0,H2,HANA,HSQLDB,INFORMIX,MARIADB,MEMSQL,MYSQL,ORACLE,POSTGRES,SNOWFLAKE,SQLSERVER,SYBASE,TERADATA,VERTICA,YUGABYTEDB}) @NotNull Merge<R> values(Object... values) Deprecated, for removal: This API element is subject to removal in a future version.Specify aVALUES
clause -
values
@NotNull @CheckReturnValue @Support({AURORA_MYSQL,AURORA_POSTGRES,CUBRID,DATABRICKS,DB2,DERBY,EXASOL,FIREBIRD_3_0,H2,HANA,HSQLDB,INFORMIX,MARIADB,MEMSQL,MYSQL,ORACLE,POSTGRES,SNOWFLAKE,SQLSERVER,SYBASE,TERADATA,VERTICA,YUGABYTEDB}) @NotNull Merge<R> values(Field<?>... values) Deprecated, for removal: This API element is subject to removal in a future version.Specify aVALUES
clause -
values
@NotNull @CheckReturnValue @Support({AURORA_MYSQL,AURORA_POSTGRES,CUBRID,DATABRICKS,DB2,DERBY,EXASOL,FIREBIRD_3_0,H2,HANA,HSQLDB,INFORMIX,MARIADB,MEMSQL,MYSQL,ORACLE,POSTGRES,SNOWFLAKE,SQLSERVER,SYBASE,TERADATA,VERTICA,YUGABYTEDB}) @NotNull Merge<R> values(Collection<?> values) Deprecated, for removal: This API element is subject to removal in a future version.Specify aVALUES
clause -
select
@NotNull @CheckReturnValue @Support({CUBRID,DATABRICKS,DB2,EXASOL,FIREBIRD_3_0,H2,HSQLDB,INFORMIX,ORACLE,POSTGRES_15,SNOWFLAKE,SQLSERVER,SYBASE,TERADATA,VERTICA}) @NotNull Merge<R> select(Select<?> select) Deprecated, for removal: This API element is subject to removal in a future version.Use aSELECT
statement as the source of values for theMERGE
statementThis variant of the
MERGE … SELECT
statement expects a select returning exactly as many fields as specified previously in theINTO
clause:DSLContext.mergeInto(Table, Field...)
orDSLContext.mergeInto(Table, Collection)
-
DSLContext.mergeInto(Table)