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(java.util.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(java.lang.Object... values)
Set
VALUES for INSERT in the MERGE
statement's WHEN NOT MATCHED THEN INSERT clause. |
@Support(value={CUBRID,DB2,HSQLDB,ORACLE,SQLSERVER,SYBASE}) MergeNotMatchedWhereStep<R> values(java.lang.Object... values)
VALUES
for INSERT
in the MERGE
statement's WHEN NOT MATCHED THEN INSERT
clause.@Support(value={CUBRID,DB2,HSQLDB,ORACLE,SQLSERVER,SYBASE}) MergeNotMatchedWhereStep<R> values(Field<?>... values)
VALUES
for INSERT
in the MERGE
statement's WHEN NOT MATCHED THEN INSERT
clause.Copyright © 2014. All Rights Reserved.