统计数据表中某个字段的值大于2条的数据

select id,member_id,type from visits where type = 1 group by member_id  having count(*) >2;

猜你喜欢

转载自www.cnblogs.com/qxandxt/p/11106100.html
今日推荐