MergeSelectStatement
Represents an SQL MERGE statement. It encapsulates the logic to perform conditional updates, insertions, or deletions.
Here is only the part specific for the Query as a source implementation. Look into MergeStatement to find the base implementation of that command.
Parameters
The destination Table where records will be merged into.
Properties
Functions
Executes the SQL statement directly in the provided transaction and returns the generated result, or null
if either no result was retrieved or if the transaction blocked statement execution.
Determines the exact way that an SQL statement is executed in a transaction and applies any necessary logic before returning the result generated by the executed statement.
Uses a transaction connection and an sql string representation to return a precompiled SQL statement, stored as an implementation of PreparedStatementApi.
Returns the string representation of an SQL statement.
Specifies a delete operation to be executed when a matching record is found in the destination table.
Postgres only. Specifies that no operation should be performed when a matching record is found in the destination table.
Defines an update operation to be executed when a matching record is found in the destination table.
Postgres only. Specifies that no operation should be performed when no matching record is found in the destination table.
Defines an insert operation to be performed when there is no matching record in the destination table.