📣
TiDB Cloud Premium 开放公测中。为企业级工作负载提供无限扩展、即时弹性伸缩和高级安全保障。此页面由 AI 自动翻译,英文原文请见此处。

SHOW FUNCTIONS



列出当前支持的内置标量函数和聚合函数。

另请参阅:system.functions

语法

SHOW FUNCTIONS [LIKE '<pattern>' | WHERE <expr>] | [LIMIT <limit>]

示例

SHOW FUNCTIONS; +-------------------------+--------------+---------------------------+ | name | is_aggregate | description | +-------------------------+--------------+---------------------------+ | != | 0 | | | % | 0 | | | * | 0 | | | + | 0 | | | - | 0 | | | / | 0 | | | < | 0 | | | <= | 0 | | | <> | 0 | | | = | 0 | | +-------------------------+--------------+---------------------------+

显示以 "today" 开头的函数:

SHOW FUNCTIONS LIKE 'today%'; +--------------+--------------+-------------+ | name | is_aggregate | description | +--------------+--------------+-------------+ | today | 0 | | | todayofmonth | 0 | | | todayofweek | 0 | | | todayofyear | 0 | | +--------------+--------------+-------------+

使用 WHERE 显示以 "today" 开头的函数:

SHOW FUNCTIONS WHERE name LIKE 'today%'; +--------------+--------------+-------------+ | name | is_aggregate | description | +--------------+--------------+-------------+ | today | 0 | | | todayofmonth | 0 | | | todayofweek | 0 | | | todayofyear | 0 | | +--------------+--------------+-------------+

文档内容是否有帮助?