聚合函数
更新时间:2024-02-21
GaiaDB-X 支持的函数,如下:
函数名 | 描述 |
---|---|
COUNT() | Return a count of the number of rows returned |
COUNT(DISTINCT) | Return the count of a number of different values |
MAX() | Return the maximum value |
MIN() | Return the minimum value |
SUM() | Return the sum |
相比MySQL5.7,GaiaDB-X暂不支持的函数,如下
函数名 | 描述 |
---|---|
AVG() | Return the average value of the argument |
BIT_AND() | Return bitwise AND |
BIT_OR() | Return bitwise OR |
BIT_XOR() | Return bitwise XOR |
JSON_ARRAYAGG() (introduced 5.7.22) | Return result set as a single JSON array |
JSON_OBJECTAGG() (introduced 5.7.22) | Return result set as a single JSON object |
STD() | Return the population standard deviation |
STDDEV() | Return the population standard deviation |
STDDEV_POP() | Return the population standard deviation |
STDDEV_SAMP() | Return the sample standard deviation |
VAR_POP() | Return the population standard variance |
VAR_SAMP() | Return the sample variance |
VARIANCE() | Return the population standard variance |