Hub
Pricing About
  • Software
  • Blog
  • Forum
  • Events
  • Documentation
  • About KNIME
  • KNIME Community Hub
  • Nodes
  • DB Writer
NodeNode / Sink

DB Writer

DB Read/Write Streamable
Drag & drop
Like
Copy short link

Inserts data rows into the database based on the selected columns from the input table.

If the database table does not exist it will be created by the node prior inserting the values. The new table will have a column for each input KNIME column. The database column name will be the same as the name of the input KNIME column. The database type is derived from the given KNIME type based on the output type mapping rules specified in the "Output Type Mapping" tab. All database columns will allow missing values (NULL). Please use the DB Table Creator node if you want to control the properties of the created database table.

If the table already exists in the database 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 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.

Node details

Input ports
  1. Type: Table
    Data to write into the database
    KNIME data table with the data rows to write into the database.
  2. Type: DB Session
    DB Connection
    DB Connection to connect to the database.
Output ports
  1. Type: Table
    Input Data with Write Status
    Input KNIME data 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
    DB Data referencing the selected table.

Extension

The DB Writer node is part of this extension:

  1. Go to item

Related workflows & nodes

  1. Go to item
    Writing data into a database
    Database Db
    This workflow uses the new database framework to write a KNIME table into a database tabl…
    tobias.koetter > Public > DB > Writing data into a database
    tobias.koetter
  2. Go to item
    Database - Simple IO
    Database Io Sqlite
    This workflow demonstrates using DB Query Reader and DB Writer nodes in a simple KNIME wo…
    knime > Examples > 01_Data_Access > 02_Databases > 01_Database_Simple_IO_Example
    knime
  3. Go to item
    Database - Simple IO
    Database Io Sqlite
    This workflow demonstrates using DB Query Reader and DB Writer nodes in a simple KNIME wo…
    knime > Education > Courses > L4-BD Introduction to Big Data with KNIME Analytics Platform > 1_DB > 4_Examples > 01_Database_Simple_IO_Example
    knime
  4. Go to item
    Database - Simple IO
    Database Io Sqlite
    This workflow demonstrates using DB Query Reader and DB Writer nodes in a simple KNIME wo…
    davin_sia > 01_Database_Simple_IO_Example > 01_Database_Simple_IO_Example
    davin_sia
  5. Go to item
    Database - Simple IO
    Database Io Sqlite
    This workflow demonstrates using DB Query Reader and DB Writer nodes in a simple KNIME wo…
    nicolassebey > Public > 01_Database_Simple_IO_Example
    nicolassebey
  6. Go to item
    Sentiment Analysis with Call Workflow - Deployment
    Deep learning Keras Text classification
    +9
    stockdaa > Public > Sentiment_Analysis_Deployment_with_Call_Workflow 1 ExcelV01(5) 2
    stockdaa
  7. Go to item
    Database - Simple IO
    Database Io Sqlite
    This workflow demonstrates using DB Query Reader and DB Writer nodes in a simple KNIME wo…
    haoran > Public > 01_Data_Access > 02_Databases > 01_Database_Simple_IO_Example
    haoran
  8. Go to item
    Using flow variable connection to control execution order
    Execution order Database operations Flow Variable connection
    In this workflow, the data are first written into a temporary (in-memory) SQLite database…
    knime > Examples > 06_Control_Structures > 03_Flow_Variables > 02_Using_Flow_Variables_to_control_Execution_Order
    knime
  9. Go to item
    Chapter 2 / Exercise 1
    Books KNIME Advanced Luck Exercise
    +3
    This exercise is about writing data into a database and while doing so it prepares the da…
    jeany > Public > KNIMEPress > KNIME_Advanced_Luck_4.1_20200525 > AdvancedLuck > Chapter2 > Exercises > Exercise1
    jeany
  10. Go to item
    Chapter 2 / Exercise 1
    Books KNIME Advanced Luck Exercise
    +3
    This exercise is about writing data into a database and while doing so it prepares the da…
    jeany > Public > KNIMEPress > KNIME_Advanced_Luck_4.3_20210222 > Chapter2 > Exercises > Exercise1
    jeany

No known nodes available

KNIME
Open for Innovation

KNIME AG
Talacker 50
8001 Zurich, Switzerland
  • Software
  • Getting started
  • Documentation
  • E-Learning course
  • Solutions
  • KNIME Hub
  • KNIME Forum
  • Blog
  • Events
  • Partner
  • Developers
  • KNIME Home
  • KNIME Open Source Story
  • Careers
  • Contact us
Download KNIME Analytics Platform Read more on KNIME Business Hub
© 2023 KNIME AG. All rights reserved.
  • Trademarks
  • Imprint
  • Privacy
  • Terms & Conditions
  • Credits