YMatrix
Quick Start
Cluster Deployment
Data Model
Data Writing
Data Query
SQL Reference
Maintenance and Monitoring
Tool Guide
Troubleshooting
FAQ
Delete mode.
DROP SCHEMA [IF EXISTS] name [, ...] [CASCADE | RESTRICT]
DROP SCHEMA deletes schema from database. The mode can only be removed by its owner or superuser. Note that even if the owner does not own some objects within the schema, the owner can delete the schema (and thus all contained objects).
IF EXISTS
name
CASCADE
RESTRICT
Remove schema mystuff from the database and everything it contains:
DROP SCHEMA mystuff CASCADE;
DROP SCHEMA is fully compliant with the SQL standard, but this standard allows only one pattern per command to be deleted. Additionally, the IF EXISTS option is a YMatrix database extension.