All pages
Powered by GitBook
1 of 1

Loading...

ALTER FUNCTION

Change stored function characteristics. This statement allows modifying the security context or comments of a stored function without dropping it.

Syntax

Description

This statement can be used to change the characteristics of a stored function. More than one change may be specified in an ALTER FUNCTION statement. However, you cannot change the parameters or body of a stored function using this statement; to make such changes, you must drop and re-create the function using and .

You must have the ALTER ROUTINE privilege for the function. (That privilege is granted automatically to the function creator.) If binary logging is enabled, the ALTER FUNCTION statement might also require the SUPER privilege, as described in .

Example

See Also

This page is licensed: GPLv2, originally from

ALTER FUNCTION func_name [characteristic ...]

characteristic:
    { CONTAINS SQL | NO SQL | READS SQL DATA | MODIFIES SQL DATA }
  | SQL SECURITY { DEFINER | INVOKER }
  | COMMENT 'string'
Information Schema ROUTINES Table
DROP FUNCTION
CREATE FUNCTION
Binary Logging of Stored Routines
CREATE FUNCTION
SHOW CREATE FUNCTION
DROP FUNCTION
SHOW FUNCTION STATUS
fill_help_tables.sql
ALTER FUNCTION hello SQL SECURITY INVOKER;