SHOW SCHEMAS lists all in a database.
Required privileges
TheCONNECT on the database is required to list the schemas in a database.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
SHOW SCHEMAS lists all in a database.
CONNECT on the database is required to list the schemas in a database.
| Parameter | Description |
|---|---|
name | The name of the database for which to show . When omitted, the schemas in the are listed. |
$ cockroach demo
> CREATE SCHEMA org_one;
> SHOW SCHEMAS;
schema_name
----------------------
crdb_internal
information_schema
org_one
pg_catalog
pg_extension
public
(6 rows)
