ALTER VIEW

Sintaxe:

ALTER
    [ALGORITHM = {UNDEFINED | MERGE | TEMPTABLE}]
    [DEFINER = { user | CURRENT_USER }]
    [SQL SECURITY { DEFINER | INVOKER }]
    VIEW view_name [(column_list)]
    AS select_statement
    [WITH [CASCADED | LOCAL] CHECK OPTION]

Descrição:

Esta instrução muda a definição de uma visão, a qual deve existir. A sintaxe é semelhante à aquela para CREATE VIEW e o efeito é o mesmo como em CREATE OR REPLACE VIEW. Veja [HELP CREATE VIEW]. Esta instrução requer os privilégios CREATE VIEW e DROP para a visão, e alguns privilégios para cada coluna referida na instrução SELECT. A partir de MySQL 5.1.23, ALTER VIEW é permitido só para o definidor ou usuários com o privilégio SUPER.

Comments

Comments loading...
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.