SQL 手册SQL 函数聚合函数COVAR_SAMP本页总览COVAR_SAMPCOVAR_SAMPDescriptionSyntax double covar_samp(x, y)计算x和y的样本协方差。examplemysql> select covar_samp(x,y) from baseall;+---------------------+| covar_samp(x, y) |+---------------------+| 0.89442719099991586 |+---------------------+1 row in set (0.21 sec)keywordsCOVAR_SAMP