org.jooq
Interface MergeMatchedStep<R extends Record>
- All Superinterfaces:
- Adapter, Attachable, Merge<R>, MergeFinalStep<R>, MergeNotMatchedStep<R>, Query, QueryPart, Serializable
- All Known Subinterfaces:
- MergeOnConditionStep<R>
public interface MergeMatchedStep<R extends Record>
- extends MergeNotMatchedStep<R>
This type is used for the Merge
's DSL API.
Example:
Factory create = new Factory();
create.mergeInto(table)
.using(select)
.on(condition)
.whenMatchedThenUpdate()
.set(field1, value1)
.set(field2, value2)
.whenNotMatchedThenInsert(field1, field2)
.values(value1, value2)
.execute();
- Author:
- Lukas Eder
whenMatchedThenUpdate
MergeMatchedSetStep<R> whenMatchedThenUpdate()
- Add the
WHEN MATCHED THEN UPDATE
clause to the
MERGE
statement
Copyright © 2012. All Rights Reserved.