public interface InsertOnConflictDoUpdateStep<R extends Record>
Insert
's DSL API.
Example:
DSLContext create = DSL.using(configuration);
create.insertInto(table, field1, field2)
.values(value1, value2)
.values(value3, value4)
.onDuplicateKeyUpdate()
.set(field1, value1)
.set(field2, value2)
.execute();
Modifier and Type | Method and Description |
---|---|
InsertReturningStep<R> |
doNothing()
Add the
DO IGNORE clause. |
InsertOnDuplicateSetStep<R> |
doUpdate()
Add the
DO UPDATE clause. |
@Support(value={AURORA_POSTGRES,CUBRID,DB2,FIREBIRD_3_0,HSQLDB,ORACLE,POSTGRES_9_5,SQLSERVER,SYBASE,TERADATA}) InsertOnDuplicateSetStep<R> doUpdate()
DO UPDATE
clause.@Support InsertReturningStep<R> doNothing()
DO IGNORE
clause.Copyright © 2019. All rights reserved.