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 |
|---|---|
| public @NotNull MergeNotMatchedWhereStep | values(T1 value1, T2 value2, T3 value3)
Deprecated
as a consequence of
Set MergeNotMatchedWhereStep being deprecated.
VALUES for INSERT in the MERGE
statement's WHEN NOT MATCHED THEN INSERT clause.
|
| public @NotNull MergeNotMatchedWhereStep | |
| public @NotNull MergeNotMatchedWhereStep | values(Collection<?> values)
Deprecated
as a consequence of
Set MergeNotMatchedWhereStep being deprecated.
VALUES for INSERT in the MERGE
statement's WHEN NOT MATCHED THEN INSERT clause.
|
| values | back to summary |
|---|---|
| public @NotNull MergeNotMatchedWhereStep Deprecated as a consequence of Set | |
| values | back to summary |
|---|---|
| public @NotNull MergeNotMatchedWhereStep Deprecated as a consequence of Set | |
| values | back to summary |
|---|---|
| public @NotNull MergeNotMatchedWhereStep Deprecated as a consequence of Set | |