-
public interface InsertOnConflictDoUpdateStep<R extends Record>
This type is used for theInsert
'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
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InsertReturningStep<R>
doNothing()
Add theDO NOTHING
clause.InsertOnDuplicateSetStep<R>
doUpdate()
Add theDO UPDATE
clause.
-
-
-
Method Detail
-
doUpdate
@Support({AURORA_POSTGRES,CUBRID,DB2,DERBY,FIREBIRD_3_0,H2,HSQLDB,INFORMIX,ORACLE,POSTGRES_9_5,SQLITE,SQLSERVER,SYBASE,TERADATA}) InsertOnDuplicateSetStep<R> doUpdate()
Add theDO UPDATE
clause.
-
doNothing
@Support InsertReturningStep<R> doNothing()
Add theDO NOTHING
clause.
-
-