我们可以通过在information_schema.routines上使用以下查询,查看特定数据库中存储过程和存储函数的列表,如下所示:
mysql> select routine_type, routine_name from information_schema.routines where routine_schema = 'query';+--------------+--------------+| routine_type | routine_name |+--------------+--------------+| procedure | allrecords || function | hello |+--------------+--------------+2 rows in set (0.04 sec)
上述查询返回了存储在名为‘query’的数据库中的名为‘allrecords’的过程和名为‘hello’的函数。
以上就是我们如何查看特定mysql数据库中存储过程和存储函数的列表?的详细内容。
