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 |
---|---|
InsertFinalStep<R> |
doNothing()
Add the
DO IGNORE clause. |
InsertOnDuplicateSetStep<R> |
doUpdate()
Add the
DO UPDATE clause. |
@Support(value=POSTGRES_9_5) InsertOnDuplicateSetStep<R> doUpdate()
DO UPDATE
clause.@Support(value=POSTGRES_9_5) InsertFinalStep<R> doNothing()
DO IGNORE
clause.Copyright © 2017. All Rights Reserved.