- 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_MYSQL,AURORA_POSTGRES,COCKROACHDB,CUBRID,DATABRICKS,DB2,DERBY,DUCKDB,EXASOL,FIREBIRD_3_0,H2,HANA,HSQLDB,INFORMIX,MARIADB,MEMSQL,MYSQL,ORACLE,POSTGRES_9_5,REDSHIFT,SNOWFLAKE,SQLITE,SQLSERVER,SYBASE,TERADATA,YUGABYTEDB}) @NotNull InsertOnDuplicateSetStep<R> doUpdate()Add theDO UPDATEclause. -
doNothing
Add theDO NOTHINGclause.
-