public interface InsertValuesStepN<R extends Record> extends InsertOnDuplicateStep<R>
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 |
---|---|
Insert<R> |
select(Select<?> select)
Use a
SELECT statement as the source of values for the
INSERT statement
This variant of the INSERT .. |
InsertValuesStepN<R> |
values(java.util.Collection<?> values)
Add values to the insert statement
|
InsertValuesStepN<R> |
values(Field<?>... values)
Add values to the insert statement
|
InsertValuesStepN<R> |
values(java.lang.Object... values)
Add values to the insert statement
|
onDuplicateKeyIgnore, onDuplicateKeyUpdate
returning, returning, returning
bind, bind, cancel, close, execute, getBindValues, getParam, getParams, getSQL, getSQL, getSQL, isExecutable, keepStatement, queryTimeout
attach, detach
@Support InsertValuesStepN<R> values(java.lang.Object... values)
@Support InsertValuesStepN<R> values(Field<?>... values)
@Support InsertValuesStepN<R> values(java.util.Collection<?> values)
@Support Insert<R> select(Select<?> select)
SELECT
statement as the source of values for the
INSERT
statement
This variant of the INSERT .. SELECT
statement expects a
select returning exactly as many fields as specified previously in the
INTO
clause:
DSLContext.insertInto(Table, Field...)
or
DSLContext.insertInto(Table, Collection)
Copyright © 2014. All Rights Reserved.