public interface MergeValuesStepN<R extends Record>
Merge
's DSL API.
Example:
DSLContext create = DSL.using(configuration);
create.mergeInto(table, field1, field2)
.key(id)
.values(value1, value2)
.execute();
Modifier and Type | Method and Description |
---|---|
Merge<R> |
select(Select<?> select)
Use a
SELECT statement as the source of values for the
MERGE statement
This variant of the MERGE .. |
Merge<R> |
values(Collection<?> values)
Specify a
VALUES clause |
Merge<R> |
values(Field<?>... values)
Specify a
VALUES clause |
Merge<R> |
values(Object... values)
Specify a
VALUES clause |
@Support(value={CUBRID,DB2,FIREBIRD_3_0,H2,HSQLDB,ORACLE,SQLSERVER,SYBASE}) Merge<R> values(Object... values)
VALUES
clause@Support(value={CUBRID,DB2,FIREBIRD_3_0,H2,HSQLDB,ORACLE,SQLSERVER,SYBASE}) Merge<R> values(Field<?>... values)
VALUES
clause@Support(value={CUBRID,DB2,FIREBIRD_3_0,H2,HSQLDB,ORACLE,SQLSERVER,SYBASE}) Merge<R> values(Collection<?> values)
VALUES
clause@Support(value={CUBRID,DB2,FIREBIRD_3_0,H2,HSQLDB,ORACLE,SQLSERVER,SYBASE}) Merge<R> select(Select<?> select)
SELECT
statement as the source of values for the
MERGE
statement
This variant of the MERGE .. SELECT
statement expects a
select returning exactly as many fields as specified previously in the
INTO
clause:
DSLContext.mergeInto(Table, Field...)
or
DSLContext.mergeInto(Table, Collection)
Copyright © 2017. All Rights Reserved.