public interface MergeNotMatchedWhereStep<R extends Record> extends MergeFinalStep<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 |
---|---|
MergeFinalStep<R> |
where(Condition condition)
Add an additional
WHERE clause to the preceding
WHEN NOT MATCHED THEN INSERT clause. |
MergeFinalStep<R> |
where(Field<Boolean> condition)
Add an additional
WHERE clause to the preceding
WHEN NOT MATCHED THEN INSERT clause. |
bind, bind, cancel, close, execute, getBindValues, getParam, getParams, getSQL, getSQL, getSQL, isExecutable, keepStatement, queryTimeout
attach, detach
@Support(value={CUBRID,ORACLE}) MergeFinalStep<R> where(Condition condition)
WHERE
clause to the preceding
WHEN NOT MATCHED THEN INSERT
clause.
Note: This syntax is only available for the
SQLDialect.CUBRID
and SQLDialect.ORACLE
databases!
See http://docs.oracle.com/cd/B19306_01/server.102/b14200/statements_9016.
htm for a full definition of the Oracle MERGE
statement
@Support(value={CUBRID,ORACLE}) MergeFinalStep<R> where(Field<Boolean> condition)
WHERE
clause to the preceding
WHEN NOT MATCHED THEN INSERT
clause.
Note: This syntax is only available for the
SQLDialect.CUBRID
and SQLDialect.ORACLE
databases!
See http://docs.oracle.com/cd/B19306_01/server.102/b14200/statements_9016.
htm for a full definition of the Oracle MERGE
statement
Copyright © 2014. All Rights Reserved.