跳到主要内容

SHOW FUNCTIONS

Introduced or updated: v1.2.315

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

另请参阅: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 | |
+--------------+--------------+-------------+
欢迎体验 Databend Cloud

基于 Rust + 对象存储构建的新一代多模态数仓,一个平台即可进行 BI、向量、全文检索及地理空间分析。

支持标准 SQL,自动弹性伸缩,助您快速构建现代化数据平台。

注册即领 ¥200 代金券。

注册体验