Merges (insert/updates) all data rows from the selected database table that match the values of a row from the selected KNIME input table columns. All selected column names of the KNIME table need to exactly match the column names from the database. The WHERE column values of the input KNIME data row need to match the values of the database row to update; whereas the SET database column values are replaced by the input KNIME column values. Only the rows matching all values of the selected column of any given input row will be updated. If no matching rows are found, the node inserts new row into the selected database table. The column order of the KNIME table and the database table do not need to match.
The output table contains two additional columns if Append merge statuses checkbox is checked. The first extra columns is the number of rows affected by the MERGE statement. A number greater than or equal to zero -- indicates that the command was processed successfully and is an update count giving the number of rows in the database that were affected by the command's execution. A value of -2 -- indicates that the command was processed successfully but that the number of rows affected is unknown. The second column shows a warning message, if any.
- Type: TableData to be merged into the databaseKNIME data Table with the data rows to be merged into the database.
- Type: DB SessionDB ConnectionDB Connection to the database.