LIST SCHEMAS
Syntax
Description
This provides a list of schemas in the current database or in a specific database. Only schemas with ownership are returned in the list.
Schemas are listed only if the current role has USAGE privileges on the database and schema.
Arguments
IN DATABASE database_name
Optionally, this lists the schemas in the provided database.
Examples
List schemas in the current database
The following provides a list of schemas in the current demodb
database:
List schemas in a specific database
The following provides a list of schemas in the user_db
database:
Last updated