SHOW-CREATE-FUNCTION
Name
SHOW CREATE FUNCTION
Description
This statement is used to display the creation statement of the user-defined function
grammar:
1. 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 display- If db_name is not specified, the current default db is used
Note: the “global” keyword is only available after v2.0
Example
- Show the creation statement of the specified function under the default db
1. SHOW CREATE FUNCTION my_add(INT, INT)
2. Show the creation statement of the specified global function
1. SHOW CREATE GLOBAL FUNCTION my_add(INT, INT)
Keywords
1. SHOW, CREATE, FUNCTION
