All pages
Powered by GitBook
1 of 1

Loading...

ALTER PROCEDURE

The ALTER PROCEDURE statement modifies the characteristics of an existing stored procedure, such as its security context or comment, without changing its logic.

Syntax

Description

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

You must have the ALTER ROUTINE privilege for the procedure. By default, that privilege is granted automatically to the procedure creator. See .

Example

See Also

This page is licensed: GPLv2, originally from

ALTER PROCEDURE proc_name [characteristic ...]

characteristic:
    { CONTAINS SQL | NO SQL | READS SQL DATA | MODIFIES SQL DATA }
  | SQL SECURITY { DEFINER | INVOKER }
  | COMMENT 'string'
SHOW CREATE PROCEDURE
  • SHOW PROCEDURE STATUS

  • Stored Routine Privileges

  • Information Schema ROUTINES Table

  • CREATE OR REPLACE PROCEDURE
    Stored Routine Privileges
    Stored Procedure Overview
    CREATE PROCEDURE
    SHOW CREATE PROCEDURE
    DROP PROCEDURE
    fill_help_tables.sql
    ALTER PROCEDURE simpleproc SQL SECURITY INVOKER;