Skip to main content

SHOW DATABASES

Introduced or updated: v1.2.290

Shows the list of databases that exist on the instance.

See also: system.databases

Syntax

SHOW [ FULL ] DATABASES 
[ LIKE '<pattern>' | WHERE <expr> ]
ParameterDescription
FULLLists the results with additional information. See Examples for more details.
LIKEFilters the results by their names using case-sensitive pattern matching.
WHEREFilters the results using an expression in the WHERE clause.

Examples

SHOW DATABASES;

┌──────────────────────┐
│ databases_in_default │
├──────────────────────┤
│ canada │
│ china │
default
│ information_schema │
│ system │
│ test │
└──────────────────────┘

SHOW FULL DATABASES;

┌───────────────────────────────────────────────────┐
│ catalog │ owner │ databases_in_default │
├─────────┼──────────────────┼──────────────────────┤
default │ account_admin │ canada │
default │ account_admin │ china │
defaultNULLdefault
defaultNULL │ information_schema │
defaultNULL │ system │
default │ account_admin │ test │
└───────────────────────────────────────────────────┘
Explore Databend Cloud for FREE
Low-cost
Fast Analytics
Easy Data Ingestion
Elastic Scaling
Try it today