Skip to main content
The SHOW SCHEMAS lists all in a database.

Required privileges

The CONNECT on the database is required to list the schemas in a database.

Synopsis

show_schemas syntax diagram

Parameters

ParameterDescription
nameThe name of the database for which to show . When omitted, the schemas in the are listed.

Example

Setup

The following examples use MovR, a fictional vehicle-sharing application, to demonstrate CockroachDB SQL statements. For more information about the MovR example application and dataset, see . To follow along, run to start a temporary, in-memory cluster with the movr dataset preloaded:

Show schemas in the current database

See also