YMatrix
Quick Start
Cluster Deployment
Data Model
Data Writing
Data Query
SQL Reference
Maintenance and Monitoring
Tool Guide
Troubleshooting
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.