Skip to content
KNIME Documentation
Main Navigation Get startedBuildWork with KnimeAccount and adminRelease notesDeveloper tools
Community Hub
DevelopersKnime
Sidebar Navigation

Getting Started

Installation

User Guide

Release Notes

Install Extensions

Building Workflows

Components

Flow Control

Expressions

File Handling

Deployment

Integrated Deployment

Workflow Invocation

Best Practices

Advanced Features

AI Extension

Get Started

Build an Agent

Inject context with RAG

LLM Providers

Tutorials

Summarize product reviews

Product FAQ assistant

Restaurant agent

Your first local agent

Task extractor

Reporting

Kerberos

Extensions

Database

Overview

Tutorials

Read and filter data from a database

Write a transformed dataset to a database

Concepts

Ports and Sessions

Query Generation

Type Mapping

Deprecated Framework

Connecting

Connect: Dedicated Node

Connect: File-Based Database

Connect: Generic DB Connector

Register a JDBC Driver

Install Third-Party Driver Plug-in

Drivers on Hub and Server

Kerberos Constrained Delegation

Reading and Transforming

Read Data

Transform Data Visually

Run a Custom SQL Query

Parameterize a Query

Writing and Modifying

Insert, Update, or Merge

Delete Rows

Bulk Load Data

Create and Remove Tables

Use Transactions

Reference

Connector Node Settings

JDBC Driver Reference

Deprecated Node Mapping

Migrate Deprecated Workflows

Python

Overview

Tutorials

Python Scripting Quickstart

Data App Development Using Plotly

Data Processing

K-AI Scripting Assistant

Data Type Conversion

Batch Processing

Jupyter Integration

Environment Management

Pixi Configuration

Dependency Management

Environment Persistence

Channel Mirrors & Air-Gapped Setups

Conda Migration

Alternative Configurations

Conda and Miniforge Setup

Conda Environment Propagation

Manual Python Configuration

Legacy Node Migration

Concepts

Pixi Backend Architecture

Storage Logic

Python Environments on Executors

Reference

Python Scripting API

Bundled Packages

Executor and Hub Configuration

Troubleshooting Guide

API Reference

Inputs and outputs

Classes

Views

Utility functions

R

Deep Learning

Snowflake

Google Cloud

Azure

AWS

Big Data

Big Data Admin

Big Data Secured Cluster

Databricks

Microsoft Fabric

Power BI

Tableau

Report Designer

H2O

Changelogs

Version 5.12

Version 5.11

Version 5.10

Version 5.9

Version 5.8

Version 5.7

Version 5.6

Version 5.5

Version 5.3

Extensions

Create and remove database tables ​

Use DB Table Creator to create a new table in a database, and DB Table Remover to drop an existing one.

Before you begin ​

  • Establish a database connection. See Connect to a database using a dedicated connector node.

Create a table with DB Table Creator ​

The DB Table Creator node creates a new database table. Define the structure manually, or derive it dynamically from an input KNIME table.

  1. Connect the DB Connection output port to a DB Table Creator node.
  2. To derive the structure from a KNIME table, connect the table to the second input port.
  3. Click the node once to open its configuration.
  4. In the Settings tab, enter the Schema and Table name, and configure the following options:
    • Create temporary table — creates a table that exists only for the duration of the database session.
    • Fail if table exists — fails with an error if a table with the same name already exists. If disabled, the node succeeds without creating a table when the name is taken.
    • Use dynamic settings — derives column names and types from the input KNIME table. When enabled, the Columns and Keys tabs become read-only previews.
  5. In the Columns tab, define or review the column names and SQL types.
  6. In the Keys tab, define or review primary and unique key columns.
  7. If Use dynamic settings is enabled, configure type and key rules in the Dynamic Columns Settings and Dynamic Keys Settings tabs:
    • Name-Based SQL Type Mapping — maps columns by name pattern (string with wildcards or regular expression) to a SQL type. Takes precedence over type-based mapping.
    • KNIME-Type-Based SQL Type Mapping — maps all columns of a given KNIME type to a SQL type.
  8. Optionally, add SQL to the Additional Options tab to append after the CREATE TABLE statement.
  9. Click Apply and Execute.

TIP

Wildcards supported in name patterns: * matches any number of characters, ? matches exactly one character. For example, KNI* matches all strings starting with KNI.

Remove a table with DB Table Remover ​

The DB Table Remover node drops a table from the database. This is equivalent to executing a SQL DROP statement.

  1. Connect the DB Connection output port to a DB Table Remover node.
  2. Click the node once to open its configuration.
  3. Enter the Schema and Table name, or click Select a table to choose from the Database Metadata Browser.
  4. Configure the following options:
    • Cascade — also removes dependent tables and views that reference the dropped table. Ignored if the database does not support it.
    • Fail if table does not exist — fails if the selected table does not exist. If disabled, the node succeeds even when no table is found.
  5. Click Apply and Execute.

Next steps ​

  • Insert, update, or merge data
  • Use database transactions

Related pages ​

  • Type mapping
  • Bulk-load data into a database
Pager
Next pageInstallation