DB Writer

Inserts data rows into the database based on the selected columns from the input table. All selected column names need to exactly match the column names within the database table.
The output table contains two additional columns if the Append insert statuses checkbox is checked. The first extra column is the number of rows affected by the INSERT statement. A number greater than or equal to zero -- indicates that the command was processed successfully and is an insert 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 shows a warning message, if any.



Table to insert
Click Select a table to select the table to write to in the pop up dialog, or enter a valid Schema and Table name into the input fields.
Batch size
Enter a number greater than 0 for the number of rows insert in one batch job; 1 means one row at a time.
Fail on error
Disable this if you want to continue after an error.
Append insert status columns
Enable this to append two additional (status and warning) columns to the output table.
Select the columns to insert (SET in SQL)
Select the columns which should be inserted in the database. The column names in the KNIME input table need to match the column names in corresponding database table. In SQL this is equivalent to the SET columns.

Type Mapping

Mapping by type
Select an SQL type for the given KNIME data types.

Input Ports

Table with the data rows to be inserted into the database.
DB Connection

Output Ports

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


This node has no views


  • No workflows found



You want to see the source code for this node? Click the following button and we’ll use our super-powers to find it for you.