我们如何查看特定MySQL数据库中存储过程的列表以及完整信息?
我们可以使用mysql.proc通过以下查询查看特定MySQL数据库中存储过程的列表以及完整信息-
mysql> Select * from mysql.proc where db = 'query' AND type = 'PROCEDURE' \G
*************************** 1. row ***************************
db: query
name: allrecords
type: PROCEDURE
specific_name: allrecords
language: SQL
sql_data_access: CONTAINS_SQL
is_deterministic: NO
security_type: DEFINER
param_list:
returns:
body: BEGIN
Select * from Student_info;
END
definer: root@localhost
created: 2017-11-11 09:56:11
modified: 2017-11-11 09:56:11
sql_mode: ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUB
STITUTION
comment:
character_set_client: cp850
collation_connection: cp850_general_ci
db_collation: latin1_swedish_ci
body_utf8: BEGIN
Select * from Student_info;
END
1 row in set (0.00 sec)热门推荐
10 新人红包祝福语简短精辟
11 幼师给毕业祝福语简短
12 生日高考祝福语妹妹简短
13 下飞机祝福语简短英文
14 元宵发客户祝福语简短
15 爸妈金婚文案祝福语简短
16 新郎朋友红包祝福语简短
17 虎年五一祝福语大全简短
18 出阁宴祝福语姐姐简短