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(java.util.Collection<?> values)
Specify a
VALUES clause |
Merge<R> |
values(Field<?>... values)
Specify a
VALUES clause |
Merge<R> |
values(java.lang.Object... values)
Specify a
VALUES clause |
@Support(value={CUBRID,DB2,H2,HSQLDB,ORACLE,SQLSERVER,SYBASE}) Merge<R> values(java.lang.Object... values)
VALUES
clause@Support(value={CUBRID,DB2,H2,HSQLDB,ORACLE,SQLSERVER,SYBASE}) Merge<R> values(Field<?>... values)
VALUES
clause@Support(value={CUBRID,DB2,H2,HSQLDB,ORACLE,SQLSERVER,SYBASE}) Merge<R> values(java.util.Collection<?> values)
VALUES
clause@Support(value={CUBRID,DB2,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 © 2014. All Rights Reserved.