SHOW SCHEMAS
The SHOW SCHEMAS
statement lists all schemas in a database.
Required privileges
No privileges are required to list the schemas in a database.
Synopsis
Parameters
Parameter | Description |
---|---|
name | The name of the database for which to show schemas. When omitted, the schemas in the current database are listed. |
Example
> SET DATABASE = bank;
> SHOW SCHEMAS;
+--------------------+
| schema_name |
+--------------------+
| crdb_internal |
| information_schema |
| pg_catalog |
| public |
+--------------------+
(4 rows)
See also
当前内容版权归 cockroachlabs.com 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 cockroachlabs.com .