The following node is available in the Open Source KNIME predictive analytics and data mining platform version 2.7.1. Discover over 1000 other nodes, as well as enterprise functionality at http://knime.com.

Database Update

Updates 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 update; whereas the SET column values are replaced by the input row values.
The output table contains an additional column with the number of rows affected by the UPDATE 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.
Make sure you have your vendor-specific database driver registered in the KNIME preference page (section Database Driver). By default, the sun.jdbc.odbc.JdbcOdbcDriver (Windows and Linux) is only available.

Dialog Options

Settings
Database Driver
Enter the database driver here; it is a Java class (including the package path), for example: sun.jdbc.odbc.JdbcOdbcDriver Additional driver can be registered via KNIME's preference page (Database Driver).
Database URL
Enter the database name here, for example: jdbc:odbc:database_name or jdbc:mysql://host:port/database_name
Workflow Credentials
If checked, the credentials (user and password) are used as defined on the workflow. The credential name links to the specified user and password. Those can be replaced or edit using the 'Workflow Credentials' menu available in the workflow context menu.
User Name
Your log-in user name for the database.
Password
Your log-in password for the database. Note, the password is de- and encrypted before handling it internally and is not stored inside the settings.
Table Name
Enter the name of the table in which the data should be updated.
Column Selection
SET columns
Select all columns used for the SET clause of the UPDATE statement; those column values are changing the data in the database.
WHERE columns
Select all columns used for the WHERE clause of the UPDATE statement; those column values need to match the corresponding value in the database in order to make the update.
Advanced
Batch Size
Enter a number greater than 0 for the number of rows updated in one batch job; 1 means on row at a time.

Ports

Input Ports
0 Table with data to be updated in the database
Output Ports
0 Input table with additional column providing number of affected rows in the database.
This node is contained in KNIME Base Nodes provided by KNIME GmbH, Konstanz, Germany.