也许我忽略了什么,但我找到的答案都解决不了我的问题。我试图从一列中获得总和和平均值,但我看到的所有内容都是从一行中获得总和和平均值。下面是我使用的查询: SELECT product_name,unit_cost,units,total,SUM(total),AVG(total)GROUP BY product_name,unit_cost,total
我的数据库中有两个表,分别是图片详情和图片点赞。get; set; } public int likenumber { get; set; }它是我的数据传输对象get; set; } public int Count { get; set; }我能够成功地计算图片的各个评分,然后除以它们的计数。现在我想在我的</em