MYSQL中数值上的group_concat [英] group_concat on numeric in MYsql
本文介绍了MYSQL中数值上的group_concat的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在MYsql中对数字值进行分组?
How to group concate the numeric values in MYsql?
推荐答案
是什么问题?如果您有这样的表格:
What is the problem? If you have a table like this:
table
id description qty
1 a 1
2 b 2
3 a 3
4 b 4
而您使用了这样的查询
and you used a query like this
SELECT description, Group_Concat(qty) FROM table WHERE description = a;
那么你会得到这些结果
1,3
您应该提供更多信息,以便我们为您提供更具体的帮助.
then you would get these results
a 1,3
You should provide more info so we can help you more specifically.
这篇关于MYSQL中数值上的group_concat的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文