我该如何分组concat?这里是我的查询mysql组合concat
select t.date, group_concat(count(*)) from table1 t
group by t.date
,但如果我用这样的查询
select t.date, count(*) from table1 t
group by t.date
返回错误“无效使用组功能的”
然后返回下面的输出,但我想GROUP_CONCAT这输出
2011-01-01 100
2011-01-02 97
2011-01-03 105
那么,你想要做什么?没有理由在结果集上使用GROUP_CONCAT,这就是应用程序语言的作用。 – 2011-04-03 16:19:51
那么你的最终结果应该是什么样子? – 2011-04-03 16:19:55
@马丁我想这样的100,97,105 – qwera 2011-04-03 16:30:19