Commands
ALTER VIEW
The ALTER VIEW
command modifies the metadata of a view. To use this command, you must own the view.
Syntax
alteroption
depends on the operation you want to perform on the view. For all supported clauses, see the sections below.
Clause
OWNER TO
Parameter or clause | Description |
---|---|
OWNER TO | This clause changes the owner of the view. |
new_user | The new owner you want to assign to the view. |
SET SCHEMA
Parameter or clause | Description |
---|---|
SET SCHEMA | This clause moves the view to a different schema. |
schema_name | The name of the schema to which the view will be moved. |
RENAME TO
Parameter or clause | Description |
---|---|
RENAME TO | This clause changes the name of the view. |
new_name | The new name of the view. |
Was this page helpful?