📣
TiDB Cloud Premium is now in public preview. Unlimited growth, instant elasticity, advanced security for enterprise workloads. Try it out →

SHOW DATABASES



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 │ │ defaultNULLsystem │ │ default │ account_admin │ test │ └───────────────────────────────────────────────────┘

Was this page helpful?