更新日期:2024年09月11日
功能说明
查看创建或修改后的存储过程或函数的状态。
语法格式
SHOW {PROCEDURE | FUNCTION} STATUS;
示例
示例1:显示已经创建成功的函数的状态。
gbase> SHOW FUNCTION STATUS\G
*************************** 1. row ***************************
Vc: vc1
Db: demo
Name: hello
Type: FUNCTION
Definer: root@%
Modified: 2020-07-15 19:26:08
Created: 2020-07-15 19:26:08
Security_type: DEFINER
Comment:
character_set_client: utf8
GBase 8a MPP Cluster 产品手册
5 数据库管理指南
文档版本953(2022-09-15)
南大通用数据技术股份有限公司
1346
collation_connection: utf8_general_ci
Database Collation: utf8_general_ci
1 row in set (Elapsed: 00:00:00.00)
示例2:显示vc1 的demo 库下已经创建成功的存储过程的状态。
gbase>
SHOW PROCEDURE STATUS where vc='vc1' and db='demo'\G
*************************** 1. row ***************************
Vc: vc1
Db: demo
Name: proc_1
Type: PROCEDURE
Definer: root@%
Modified: 2020-07-15 19:25:14
Created: 2020-07-15 19:25:14
Security_type: DEFINER
Comment:
character_set_client: utf8
collation_connection: utf8_general_ci
Database Collation: utf8_general_ci
1 row in set (Elapsed: 00:00:00.00)