DB Merge


Merges the data rows in the database with the data values from the input tables. All selected column names need to exactly match the column names from the database. The WHERE column values need to match the row to merge; whereas the SET column values are replaced by the input row values. If no matching rows are found, the node performs an insert.
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.

Input Ports

  1. Type: Data
    Table with the data rows to be merged into the database.
  2. Type: DB Session
    DB Connection

Output Ports

  1. Type: Data
    Input table with additional columns providing the number of affected rows in the database and warnings, if checked in the dialog.
  2. Type: DB Data
    DB Data referencing the selected table.


This node is part of the extension

KNIME Database


Short Link

Drag node into KNIME Analytics Platform