我們如何在特定 MySQL 資料庫中檢視儲存函式的列表以及一些其他資訊?


我們可以透過以下查詢查詢特定 MySQL 資料庫中儲存函式的列表以及其他資訊 −

mysql> SHOW FUNCTION STATUS WHERE db = 'query'\G
*************************** 1. row ***************************
                  Db: query
                Name: factorial
                Type: FUNCTION
             Definer: root@localhost
            Modified: 2021-11-16 14:04:48
             Created: 2021-11-16 14:04:48
       Security_type: DEFINER
             Comment:
character_set_client: cp850
collation_connection: cp850_general_ci
  Database Collation: latin1_swedish_ci
*************************** 2. row ***************************
                  Db: query
                Name: Hello
                Type: FUNCTION
             Definer: root@localhost
            Modified: 2017-11-12 11:42:31
             Created: 2017-11-12 11:42:31
       Security_type: DEFINER
             Comment:
character_set_client: cp850
collation_connection: cp850_general_ci
  Database Collation: latin1_swedish_ci
2 rows in set (0.16 sec)

更新於: 2020 年 6 月 22 日

73 次瀏覽

職業在指尖

完成課程獲得認證

開始
廣告
© . All rights reserved.