- All Known Subinterfaces:
InsertOnConflictWhereIndexPredicateStep<R>
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
-
Method Summary
Modifier and TypeMethodDescription@NotNull InsertReturningStep<R>Add theDO NOTHINGclause.@NotNull InsertOnDuplicateSetStep<R>doUpdate()Add theDO UPDATEclause.
-
Method Details
-
doUpdate
@NotNull @CheckReturnValue @Support({AURORA_POSTGRES,COCKROACHDB,CUBRID,DB2,DERBY,EXASOL,FIREBIRD_3_0,H2,HSQLDB,INFORMIX,ORACLE,POSTGRES_9_5,SQLITE,SQLSERVER,SYBASE,TERADATA}) @NotNull InsertOnDuplicateSetStep<R> doUpdate()Add theDO UPDATEclause. -
doNothing
Add theDO NOTHINGclause.
-