ALTER FUNCTION

Sintaxe:

ALTER FUNCTION func_name [characteristic ...]

characteristic:
    { CONTAINS SQL | NO SQL | READS SQL DATA | MODIFIES SQL DATA }
  | SQL SECURITY { DEFINER | INVOKER }
  | COMMENT 'string'

Descrição:

Esta instrução pode ser usada para alterar as características de uma função armazenada. Mais de uma mudança pode ser especificada em uma instrução ALTER FUNCTION. No entanto, você não pode alterar os parâmetros ou o corpo de uma função armazenada usando esta instrução; para fazer essas alterações, você deve descartar e recriar a função usando DROP FUNCTION e CREATE FUNCTION.

Você deve ter o privilégio ALTER ROUTINE para a função. (Esse privilégio é concedido automaticamente ao criador da função.) Se o logging binário estiver habilitado, a instrução ALTER FUNCTION irá requerer também do privilégio SUPER, conforme descrito em http://dev.mysql.com/doc/refman/5.1/en/stored-programs-logging.html.

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.