站长资源数据库
SQL 平均数统计
简介复制代码 代码如下:SELECT CAST(SUM(score_comments_) / COUNT(*) AS decimal) AS score FROM Comments_Toysgogo_ WHERE (aboutid_comments_ = 81) AND (table_comments_
复制代码 代码如下:
SELECT CAST(SUM(score_comments_) / COUNT(*) AS decimal) AS score
FROM Comments_Toysgogo_
WHERE (aboutid_comments_ = 81) AND (table_comments_ = 'product')
上一篇:MSSQL 清空数据库的方法