SHOW CREATE FUNCTION
This statement is used to display the creation statement of the user-defined function
grammar:
SHOW CREATE [GLOBAL] FUNCTION function_name(arg_type [, ...]) [FROM db_name]];
illustrate:
global: The show function is globalfunction_name: The name of the function to displayarg_type: The parameter list of the function to displayNote: the “global” keyword is only available after v2.0
Show the creation statement of the specified function under the default db
SHOW CREATE FUNCTION my_add(INT, INT)
Show the creation statement of the specified global function
SHOW CREATE GLOBAL FUNCTION my_add(INT, INT)
SHOW, CREATE, FUNCTION