⌘K ctrl+k
Search Shortcut cmd + k | ctrl + k

SHOW and SHOW DATABASE Statements

SHOW Statement

The SHOW statement is an alias for DESCRIBE. It shows the schema of a table, view or query.

SHOW DATABASES Statement

The SHOW DATABASES statement shows a list of all attached databases:

ATTACH 'my.duckdb' AS my_database;
SHOW DATABASES;
database_name
memory
my_database
DETACH my_database;
SHOW DATABASES;
database_name
memory

SHOW VARIABLES

The SHOW VARIABLES-statement lists the name, value (as VARCHAR) and data type of all SQL-level variables existing in the current session.

SET VARIABLE int_var = 42;
SET VARIABLE txt_var = 'Hello';
SHOW VARIABLES;
name value type
int_var 42 INTEGER
txt_var Hello VARCHAR

SQL-level variables that were unset by a RESET VARIABLE-statement cease to exist and are therefore not listed.

The list of existing SQL-level variables is also available as duckdb_variables()-metadata query.

© 2026 DuckDB Foundation, Amsterdam NL
DuckDB Home Code of Conduct Trademark Use Blog