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 will only be listed 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