通过以下查询,我们只能看到特定 MySQL 数据库中存储函数的列表 -
mysql> SELECT ROUTINE_TYPE, ROUTINE_NAME FROM INFORMATION_SCHEMA.ROUTINES WHERE ROUTINE_SCHEMA = 'query' AND ROUTINE_TYPE = 'FUNCTION'//
+--------------+--------------------+
| ROUTINE_TYPE | ROUTINE_NAME |
+--------------+--------------------+
| FUNCTION | factorial |
| FUNCTION | Hello |
+--------------+--------------------+
2 rows in set (0.07 sec)