ALTER VIEW
Alters a view
DSQL
ALTER VIEW viewname [<full_column_list>] AS <select_statement> [WITH CHECK OPTION] <full_column_list> ::= (colname [, colname ...])
Parameter | Description |
---|---|
viewname |
Name of an existing view |
select_statement |
SELECT statement |
full_column_list |
The list of columns in the view |
colname |
View column name.Duplicate column names are not allowed. |
Use the ALTER VIEW
statement for changing the definition of an existing view.Privileges for views remain intact and dependencies are not affected.
The syntax of the ALTER VIEW
statement corresponds with that of CREATE VIEW
.
Caution
|
Be careful when you change the number of columns in a view.Existing application code and PSQL modules that access the view may become invalid.For information on how to detect this kind of problem in stored procedures and trigger, see The RDB$VALID_BLR Field in the Appendix. |