Computer >> Hướng Dẫn Máy Tính >  >> Lập Trình >> MySQL

Xem danh sách stored function kèm thông tin cơ bản trong MySQL

Dùng SHOW FUNCTION STATUS lọc theo database để xem danh sách function với thông tin tóm tắt:

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

Thông tin: db, tên, loại, definer, thời gian tạo/sửa, security type, charset/collation. Không có body code.