- All Known Subinterfaces:
MergeKeyStepN<R>
,MergeUsingStep<R>
public interface MergeValuesStepN<R extends Record>
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();
- Author:
- Lukas Eder
-
Method Summary
Modifier and TypeMethodDescriptionUse aSELECT
statement as the source of values for theMERGE
statementSpecify aVALUES
clausevalues
(Collection<?> values) Specify aVALUES
clauseSpecify aVALUES
clause
-
Method Details
-
values
@NotNull @CheckReturnValue @Support({AURORA_MYSQL,AURORA_POSTGRES,CUBRID,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) Specify aVALUES
clause -
values
@NotNull @CheckReturnValue @Support({AURORA_MYSQL,AURORA_POSTGRES,CUBRID,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) Specify aVALUES
clause -
values
@NotNull @CheckReturnValue @Support({AURORA_MYSQL,AURORA_POSTGRES,CUBRID,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) Specify aVALUES
clause -
select
@NotNull @CheckReturnValue @Support({CUBRID,DB2,EXASOL,FIREBIRD_3_0,H2,HSQLDB,INFORMIX,ORACLE,SNOWFLAKE,SQLSERVER,SYBASE,TERADATA,VERTICA}) @NotNull Merge<R> select(Select<?> select) 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)
-