This statement can be used to change the characteristics of a stored function. More than one change
may be specified in an
body of a stored function using this statement; to make such changes, you must drop and re-create the
function using
As of MySQL 5.0.3, you must have the
is granted automatically to the function creator.) If binary logging is enabled, the
statement might also require the
of Stored
Programs".
13.1.3.
ALTER PROCEDURE
ALTER PROCEDURE
characteristic:
COMMENT 'string'
| LANGUAGE SQL
| { CONTAINS SQL | NO SQL | READS SQL DATA | MODIFIES SQL DATA }
| SQL SECURITY { DEFINER | INVOKER }
This statement can be used to change the characteristics of a stored procedure. More than one change
may be specified in an
body of a stored procedure using this statement; to make such changes, you must drop and re-create
the procedure using
As of MySQL 5.0.3, you must have the
that privilege is granted automatically to the procedure creator. This behavior can be changed by
disabling the
Routines and MySQL
13.1.4.
ALTER TABLE
ALTER [IGNORE] TABLE
[alter_specification
alter_specification:
table_options
| ADD [COLUMN]
[FIRST | AFTER
| ADD [COLUMN]
| ADD {INDEX|KEY} [index_name]
[index_type] (index_col_name,...) [index_type]
| ADD [CONSTRAINT [symbol]] PRIMARY KEY
[index_type] (index_col_name,...) [index_type]
| ADD [CONSTRAINT [symbol]]
UNIQUE [INDEX|KEY] [index_name]
[index_type] (index_col_name,...) [index_type]
| ADD [FULLTEXT|SPATIAL] [INDEX|KEY] [index_name]
(index_col_name,...) [index_type]
| ADD [CONSTRAINT [symbol]]
FOREIGN KEY [index_name] (index_col_name,...)
reference_definition
| ALTER [COLUMN]
| CHANGE [COLUMN]
[FIRST|AFTER col_name]
| MODIFY [COLUMN]
[FIRST | AFTER col_name]
| DROP [COLUMN]
| DROP PRIMARY KEY
| DROP {INDEX|KEY}
| DROP FOREIGN KEY
| DISABLE KEYS
| ENABLE KEYS
| RENAME [TO|AS]
| ORDER BY
| CONVERT TO CHARACTER SET
| [DEFAULT] CHARACTER SET [=]
ALTER PROCEDURE
ALTER FUNCTION
and
DROP FUNCTION
SUPER
Syntax
proc_name [characteristic
ALTER PROCEDURE
DROP PROCEDURE
automatic_sp_privileges
Privileges".
Syntax
tbl_name
[, alter_specification] ...]
col_name column_definition
col_name
]
(col_name
column_definition,...)
col_name
{SET DEFAULT
old_col_name new_col_name column_definition
col_name column_definition
col_name
index_name
fk_symbol
new_tbl_name
col_name
[, col_name] ...
charset_name
charset_name
Syntax
statement. However, you cannot change the parameters or
CREATE
FUNCTION.
[576]
ALTER ROUTINE
[578]
privilege, as described in
...]
statement. However, you cannot change the parameters or
and
CREATE
PROCEDURE.
[576]
ALTER ROUTINE
[437]
system variable. See
literal
| DROP DEFAULT}
[COLLATE collation_name]
[COLLATE [=] collation_name]
1013
privilege for the function. (That privilege
ALTER FUNCTION
Section 18.6, "Binary Logging
privilege for the procedure. By default,
Section 18.2.2, "Stored
Need help?
Do you have a question about the 5.0 and is the answer not in the manual?
Questions and answers