public interface MergeMatchedDeleteStep<R extends Record> extends MergeNotMatchedStep<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 |
---|---|
MergeNotMatchedStep<R> |
deleteWhere(java.lang.Boolean condition)
Deprecated.
- 3.8.0 - [#4763] - Use
deleteWhere(Condition) or
deleteWhere(Field) instead. Due to ambiguity between
calling this method using Field.equals(Object)
argument, vs. calling the other method via a
Field.equal(Object) argument, this method will be
removed in the future. |
MergeNotMatchedStep<R> |
deleteWhere(Condition condition)
Add an additional
DELETE WHERE clause to the preceding
WHEN MATCHED THEN UPDATE clause. |
MergeNotMatchedStep<R> |
deleteWhere(Field<java.lang.Boolean> condition)
Add an additional
DELETE WHERE clause to the preceding
WHEN MATCHED THEN UPDATE clause. |
whenNotMatchedThenInsert, whenNotMatchedThenInsert, whenNotMatchedThenInsert, whenNotMatchedThenInsert, whenNotMatchedThenInsert, whenNotMatchedThenInsert, whenNotMatchedThenInsert, whenNotMatchedThenInsert, whenNotMatchedThenInsert, whenNotMatchedThenInsert, whenNotMatchedThenInsert, whenNotMatchedThenInsert, whenNotMatchedThenInsert, whenNotMatchedThenInsert, whenNotMatchedThenInsert, whenNotMatchedThenInsert, whenNotMatchedThenInsert, whenNotMatchedThenInsert, whenNotMatchedThenInsert, whenNotMatchedThenInsert, whenNotMatchedThenInsert, whenNotMatchedThenInsert, whenNotMatchedThenInsert, whenNotMatchedThenInsert, whenNotMatchedThenInsert
bind, bind, cancel, close, execute, executeAsync, executeAsync, getBindValues, getParam, getParams, getSQL, getSQL, getSQL, isExecutable, keepStatement, queryTimeout
attach, configuration, detach
@Support(value={CUBRID,ORACLE}) MergeNotMatchedStep<R> deleteWhere(Condition condition)
DELETE WHERE
clause to the preceding
WHEN MATCHED THEN UPDATE
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}) MergeNotMatchedStep<R> deleteWhere(Field<java.lang.Boolean> condition)
DELETE WHERE
clause to the preceding
WHEN MATCHED THEN UPDATE
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
@Deprecated @Support(value={CUBRID,ORACLE}) MergeNotMatchedStep<R> deleteWhere(java.lang.Boolean condition)
deleteWhere(Condition)
or
deleteWhere(Field)
instead. Due to ambiguity between
calling this method using Field.equals(Object)
argument, vs. calling the other method via a
Field.equal(Object)
argument, this method will be
removed in the future.DELETE WHERE
clause to the preceding
WHEN MATCHED THEN UPDATE
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 © 2018. All Rights Reserved.