public interface MergeNotMatchedValuesStepN<R extends Record>
Merge
's DSL API.
Example:
DSLContext create = DSL.using(configuration);
create.mergeInto(table)
.using(select)
.on(condition)
.whenMatchedThenUpdate()
.set(field1, value1)
.set(field2, value2)
.whenNotMatchedThenInsert(field1, field2)
.values(value1, value2)
.execute();
Modifier and Type | Method and Description |
---|---|
MergeNotMatchedWhereStep<R> |
values(Collection<?> values)
Set
VALUES for INSERT in the MERGE
statement's WHEN NOT MATCHED THEN INSERT clause. |
MergeNotMatchedWhereStep<R> |
values(Field<?>... values)
Set
VALUES for INSERT in the MERGE
statement's WHEN NOT MATCHED THEN INSERT clause. |
MergeNotMatchedWhereStep<R> |
values(Object... values)
Set
VALUES for INSERT in the MERGE
statement's WHEN NOT MATCHED THEN INSERT clause. |
@Support(value={CUBRID,DB2,FIREBIRD_3_0,HSQLDB,ORACLE,SQLSERVER,SYBASE}) MergeNotMatchedWhereStep<R> values(Object... values)
VALUES
for INSERT
in the MERGE
statement's WHEN NOT MATCHED THEN INSERT
clause.@Support(value={CUBRID,DB2,FIREBIRD_3_0,HSQLDB,ORACLE,SQLSERVER,SYBASE}) MergeNotMatchedWhereStep<R> values(Field<?>... values)
VALUES
for INSERT
in the MERGE
statement's WHEN NOT MATCHED THEN INSERT
clause.@Support(value={CUBRID,DB2,FIREBIRD_3_0,HSQLDB,ORACLE,SQLSERVER,SYBASE}) MergeNotMatchedWhereStep<R> values(Collection<?> values)
VALUES
for INSERT
in the MERGE
statement's WHEN NOT MATCHED THEN INSERT
clause.Copyright © 2016. All Rights Reserved.