Module org.jooq
Package org.jooq

Interface MergeNotMatchedStep<R extends Record>

All Superinterfaces:
Attachable, AttachableQueryPart, AutoCloseable, DMLQuery<R>, Flow.Publisher<Integer>, Merge<R>, MergeFinalStep<R>, Publisher<Integer>, org.reactivestreams.Publisher<Integer>, Query, QueryPart, RowCountQuery, Serializable, Statement
All Known Subinterfaces:
MergeMatchedDeleteStep<R>, MergeMatchedSetMoreStep<R>, MergeMatchedStep<R>, MergeMatchedWhereStep<R>, MergeOnConditionStep<R>

public interface MergeNotMatchedStep<R extends Record> extends MergeFinalStep<R>
This type is used for the 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();
 
Author:
Lukas Eder