Module org.jooq
Package org.jooq

Interface InsertOnConflictDoUpdateStep<R extends Record>


  • public interface InsertOnConflictDoUpdateStep<R extends Record>
    This type is used for the Insert's DSL API.

    Example:

     DSLContext create = DSL.using(configuration);
    
     create.insertInto(table, field1, field2)
           .values(value1, value2)
           .onConflict(field1)
           .doUpdate()
           .set(field2, value2)
           .execute();
     
    Author:
    Lukas Eder, Fabrice Le Roy