SHOW CREATE PROCEDURE | FUNCTION sp_name
Cette commande est une extension MySQL. Similaire à
SHOW CREATE TABLE
, elle retourne la chaîne
exacte qui permet de recréer la procédure.
mysql> SHOW CREATE FUNCTION test.hello\G
*************************** 1. row ***************************
Function: hello
sql_mode:
Create Function: CREATE FUNCTION `test`.`hello`(s CHAR(20)) RETURNS CHAR(50)
RETURN CONCAT('Hello, ',s,'!')
This is a translation of the MySQL Reference Manual that can be found at dev.mysql.com. The original Reference Manual is in English, and this translation is not necessarily as up to date as the English version.