YMatrix
Quick Start
Standard Cluster Deployment
Data Modeling
Connecting to The database
Data Migration
Data Query
Maintenance and Monitoring
Performance Tuning
Troubleshooting
Reference Guide
SQL Reference
FAQ
Change a schema definition.
ALTER SCHEMA name RENAME TO newname
ALTER SCHEMA name OWNER TO newowner
ALTER SCHEMA Changes a schema definition.
Users must have this mode to use ALTER SCHEMA. To rename a schema, the user must also have CREATE privileges for the database. To change the owner, the user must also be a direct or indirect member of the newly owned role, and the role must have CREATE privileges on the database. Note: Superusers automatically have all these privileges.
name
newname
newowner
There is no ALTER SCHEMA statement in the SQL standard.