public interface MergeUsingStep<R extends Record> extends MergeKeyStepN<R>
Merge's DSL API.
 
 Example: 
 DSLContext create = DSL.using(configuration);
 create.mergeInto(table)
       .using(select)
       .on(condition)
       .whenMatchedThenUpdate()
       .set(field1, value1)
       .set(field2, value2)
       .whenNotMatchedThenInsert(field1, field2)
       .values(value1, value2)
       .execute();
 
| Modifier and Type | Method and Description | 
|---|---|
MergeOnStep<R> | 
using(TableLike<?> table)
Add the  
USING clause to the SQL standard MERGE
 statement | 
MergeOnStep<R> | 
usingDual()
Add a dummy  
USING clause to the SQL standard
 MERGE statement
 
 This results in USING(SELECT 1 FROM DUAL) for most RDBMS, or
 in USING(SELECT 1) AS [dummy_table(dummy_field)] in SQL
 Server, where derived tables need to be aliased. | 
key, keyselect, values, values, values@Support(value={CUBRID,DB2,HSQLDB,ORACLE,SQLSERVER,SYBASE}) MergeOnStep<R> using(TableLike<?> table)
USING clause to the SQL standard MERGE
 statement@Support(value={CUBRID,DB2,HSQLDB,ORACLE,SQLSERVER,SYBASE}) MergeOnStep<R> usingDual()
USING clause to the SQL standard
 MERGE statement
 
 This results in USING(SELECT 1 FROM DUAL) for most RDBMS, or
 in USING(SELECT 1) AS [dummy_table(dummy_field)] in SQL
 Server, where derived tables need to be aliased.
Copyright © 2015. All Rights Reserved.