Icon

1. Database Operations

<p><strong>Database Operations</strong></p><p>This workflow shows how to</p><ul><li><p>connect to a database using the DB-specific <em>SQLite Connector</em> node and the generic <em>DB Connector</em> node,</p></li><li><p>implement SQL queries as free text, or</p></li><li><p>implement SQL queries using the database nodes.</p></li></ul>

Database access

Opens the connection to the database and in some cases builds a first SELECT query. For SQLite DB a dedicated connector is available.

Build SELECT query

Import data into workflow

Extract and Insert existing SQL queries

Writing into a database

Workflow: Database Operations


This workflow shows how to

  • connect to a database using the DB-specific SQLite Connector node and the generic DB Connector node,

  • implement SQL queries as free text, or

  • implement SQL queries using the database nodes.

Note:

Adjust the Database URL in the node configuration:

jdbc:sqlite://<path to DB>

"include" = prod1, prod2, prod3 "exclude" = prod5
Table Creator
SELECT query to exclude column "card"
DB Column Filter
SELECT query toexclude rows with "prod_4" &include rows withcountry = "Germany"
DB Row Filter
Original data, no prod_4
DB Reader
Match values in"exclude" column
Parameterized DB Query Reader
SELECT * from sales
DB Table Selector
No card, no prod_4from Row Filter andColumn Filter
DB Reader
Insert prod_52015 Indiainto sales table
DB SQL Executor
inject query into new DB connection
DB Query Injector
Dedicated connectorto KCBBook.sqlite
SQLite Connector
Write results of SQL query directly to database
DB Connection Table Writer
extract query from row filter + column filter
DB Query Extractor
SELECT queryno card, no prod_4
DB Query Reader
Delete records withmatching value in "product" column
DB Delete (Table)
Update other field values in records where "column"matches "exclude"
DB Update
All fields, all datafrom sales table
DB Table Selector
Write output data table from KNIME into SQLite database
DB Writer
Original table + new India data
DB Reader
No card, no prod_4
DB Reader
Generic connectorto SQLite DBKCBBookCopy.sqlite
DB Connector
SELECT query to exclude rows with prod_4 and include rows with Germany
DB Query

Nodes

Extensions

Links