ALTER [ALGORITHM = {UNDEFINED | MERGE | TEMPTABLE}] [DEFINER =user
] [SQL SECURITY { DEFINER | INVOKER }] VIEWview_name
[(column_list
)] ASselect_statement
[WITH [CASCADED | LOCAL] CHECK OPTION]
This statement changes the definition of a view, which must exist. 此语句更改视图的定义,视图必须存在。The syntax is similar to that for 语法与CREATE VIEW
see Section 13.1.23, “CREATE VIEW Statement”). CREATE INDEX
的语法类似,请参阅第13.1.23节,“CREATE INDEX语句”。This statement requires the 此语句需要视图的CREATE VIEW
and DROP
privileges for the view, and some privilege for each column referred to in the SELECT
statement. CREATE VIEW
和DROP
权限,以及SELECT
语句中引用的每个列的一些权限。ALTER VIEW
is permitted only to the definer or users with the SET_USER_ID
privilege (or the deprecated SUPER
privilege).ALTER VIEW
仅允许定义者或具有SET_USER_ID
权限(或不推荐使用的SUPER
权限)的用户使用。