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

Read data from a database ​

Read a database table or custom query result into a KNIME data table using the DB Table Selector and DB Reader nodes.

Before you begin ​

  • Establish a database connection using a connector node. See Connect to a database using a dedicated connector node or Connect to a database with the generic DB Connector.

Select and read a table ​

Configure a DB Table Selector node to choose a table or query, then read the result with a DB Reader node.

  1. Connect the output port of the connector node to a DB Table Selector node.
  2. Click DB Table Selector once to open its configuration.
  3. Enter the Schema and Table/View name, or click Select a table to open the Database Metadata Browser and pick from a list of available tables and views.
  4. To write a custom SQL query instead, tick Custom Query and enter a SELECT statement. Use the placeholder #table# to reference the table selected via the browser.
  5. Optionally, configure Input Type Mapping rules to override how database types map to KNIME types. See Type mapping.
  6. Click Apply.
  7. Connect a DB Reader node to the DB Table Selector output port.
  8. Execute the DB Reader node. It runs the SQL query in the database and outputs the result as a KNIME data table.

Use the Database Metadata Browser ​

The Database Metadata Browser displays the database schema, including all tables, views, and their columns with data types.

  • Click a schema, table, or view to expand it.
  • Select a table or view and click OK, or double-click it to confirm the selection.
  • Use the search box at the top to find a table or view by name.
  • Click the Refresh button (lower right) to reload the schema if changes have occurred since you opened the browser.

Next steps ​

  • Transform data visually in a database
  • Run a custom SQL query

Related pages ​

  • DB ports and sessions
  • Type mapping
  • Query generation
Pager
Next pageInstallation