This is a read-only copy of the MariaDB Knowledgebase generated on 2024-05-17. For the latest, interactive version please visit https://mariadb.com/kb/.

ALTER FUNCTION

Sintassi

ALTER FUNCTION nome_funz [caratteristica ...]

caratteristica:
    { CONTAINS SQL | NO SQL | READS SQL DATA | MODIFIES SQL DATA }
  | SQL SECURITY { DEFINER | INVOKER }
  | COMMENT 'stringa'

Spiegazione

Questa istruzione serve a modificare le caratteristiche di una Stored Function. E' possibile modificare più di una caratteristica con un solo comando ALTER FUNCTION. Tuttavia, non è possibile usare questa istruzione per modificare i parametri e il corpo di una routine; per effettuare tali cambiamenti occorre eliminare e ricreare la funzione servendosi delle istruzioni DROP FUNCTION e CREATE FUNCTION.

Occorre disporre del privilegio ALTER ROUTINE sulla funzione. Questo permesso viene assegnato automaticamente al creatore della routine. Se il log binario è abilitato, l'istruzione ALTER FUNCTION potrebbe richiedere anche il privilegio SUPER, come spiegato alla pagina http://dev.mysql.com/doc/refman/5.1/en/stored-programs-logging.html.

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.