ALTER SCHEMA

Function

Changes the attributes of a schema.

Precautions

Only the owner of a schema, a user granted with the ALTER permission for the schema, or a system administrator has the permission to run the ALTER SCHEMA statement.

Only the schema owner or the system administrator can change the owner of a schema.

Syntax

Parameter Description

Examples

Rename the ds schema to ds_new.

1
ALTER SCHEMA ds RENAME TO ds_new;

Change the owner of ds_new to jack.

1
ALTER SCHEMA ds_new OWNER TO jack;

Helpful Links

CREATE SCHEMA, DROP SCHEMA