One of the characteristic of routine is COMMENT. COMMENT supports VARCHAR(64), it is allowed to add maximum 64 characters for the routine comment.
CREATE PROCEDURE procedure_name(parameters)
COMMENT comment_info
BEGIN
/* Statements */
END
|
DELIMITER $$
CREATE PROCEDURE getUserInfo()
COMMENT 'getUserInfo used to get all users in user_info table'
BEGIN
SELECT * FROM user_info;
END
$$
|
How to check routine names with routine comment description
SELECT routine_name,routine_comment FROM INFORMATION_SCHEMA.ROUTINES WHERE routine_schema = "my_db";
|