SHOW PROCEDURE STATUS

This MySQL statement displays information on stored procedures.

Syntax

Below is the syntax for this command. Text within square brackets (i.e, [ and ] ) are optional. Choices are separated by bars (i.e, | ). Ellipses preceded by a comma indicates a repeating pattern. Ellipses before or after syntax are used to highlight a relevant except from the larger syntax. Text displayed in italic letters represent text that should be replaced with the specific names related to the database (e.g., column with the name of the column).

SHOW PROCEDURE STATUS [LIKE 'pattern'|WHERE expression]

Explanation

This MySQL statement displays information on stored procedures in MySQL. The LIKE or WHERE clauses can be used to list stored procedures based on a particular naming pattern. With the WHERE clause, you can use the names of fields in the results to create an expression that sets a condition determining the results returned.

Examples

An example using this MySQL statement follows:

SHOW PROCEDURE STATUS
WHERE Name='students_copy_proc' G

*************************** 1. row ***************************
           Db: college
         Name: students_copy_proc
         Type: PROCEDURE
      Definer: ulfthewolf@localhost
     Modified: 2007-11-27 09:27:42
      Created: 2007-11-27 09:27:42
Security_type: DEFINER
      Comment:

Note that for the WHERE clause we used the field name to get the specific stored procedure.