CREATE SCHEMA
Grammar Syntax
CREATE SCHEMA [ IF NOT EXISTS ] schema_name [ AUTHORIZATION username ]
[ QUOTA {quota [MB | GB | TB] | UNLIMITED} ] [ schema_element [ ... ]
CREATE SCHEMA AUTHORIZATION username [ QUOTA {quota [MB | GB | TB] | UNLIMITED} ]
[ schema_element [ ... ] ]For more information please refer to Redshift CREATE SCHEMA documentation.
Sample Source Patterns
Basic samples
Input Code:
Output Code:
Authorization Clause
Input Code:
Output Code:
Please be aware that for this case, the authorization clause is removed from the code since Snowflake schemas are owned by roles, not individual users. For more information please refer to Snowflake GRANT OWNERSHIP documentation.
Quota Clause
Input Code:
Output Code:
Create Schema Authorization
In Redshift when the schema name is not specified but the authorization clause is defined, a new schema is created with the owner's name. For this reason this behavior is replicated in Snowflake.
Input Code:
Output Code:
Related EWIs
There are no known issues.
Last updated
