跳到主要内容

COVAR

COVAR

Description

Syntax

double covar(x, y)

计算协方差, 即返回结果为: x和y的协方差。

example

mysql> select covar(x,y) from baseall;
+---------------------+
| covar(x, y) |
+---------------------+
| 0.89442719099991586 |
+---------------------+
1 row in set (0.21 sec)

keywords

COVAR