SHOW FUNCTION

description

Syntax

  1. SHOW FUNCTION [FROM db]

Parameters

db: 要查询的数据库名字

查看数据库下所有的自定义函数。如果用户指定了数据库,那么查看对应数据库的,否则直接查询当前会话所在数据库

需要对这个数据库拥有 SHOW 权限

example

  1. mysql> show function in testDb\G
  2. *************************** 1. row ***************************
  3. Signature: my_count(BIGINT)
  4. Return Type: BIGINT
  5. Function Type: Aggregate
  6. Intermediate Type: NULL
  7. Properties: {"object_file":"http://host:port/libudasample.so","finalize_fn":"_ZN9doris_udf13CountFinalizeEPNS_15FunctionContextERKNS_9BigIntValE","init_fn":"_ZN9doris_udf9CountInitEPNS_15FunctionContextEPNS_9BigIntValE","merge_fn":"_ZN9doris_udf10CountMergeEPNS_15FunctionContextERKNS_9BigIntValEPS2_","md5":"37d185f80f95569e2676da3d5b5b9d2f","update_fn":"_ZN9doris_udf11CountUpdateEPNS_15FunctionContextERKNS_6IntValEPNS_9BigIntValE"}
  8. *************************** 2. row ***************************
  9. Signature: my_add(INT,INT)
  10. Return Type: INT
  11. Function Type: Scalar
  12. Intermediate Type: NULL
  13. Properties: {"symbol":"_ZN9doris_udf6AddUdfEPNS_15FunctionContextERKNS_6IntValES4_","object_file":"http://host:port/libudfsample.so","md5":"cfe7a362d10f3aaf6c49974ee0f1f878"}
  14. 2 rows in set (0.00 sec)

keyword

  1. SHOW,FUNCTION