对于mysql处理数据库表中一对多的数据统计问题

来源:互联网 发布:电子物证备份软件 编辑:程序博客网 时间:2024/05/07 01:29

今天遇到一个问题,就是要统计一个数据库表中的相同字段的条数的问题。

SELECT conferenceId, COUNT(*) as num FROM meet_conference_attendee  where conferenceId in (100740609,101650330,104095246) GROUP BY conferenceId ;


关于group by

http://zousheng.blog.163.com/blog/static/345363920108270207705/


关于MySQL中concat函数

http://zac110.iteye.com/blog/1582382

0 0
原创粉丝点击