1:mysql 去重的正确节奏
select count(DISTINCT id) from table where id in ('1','2')
2:mysql 分批统计
select count(id) from table where id in ('1','2') group_by id
1:mysql 去重的正确节奏
select count(DISTINCT id) from table where id in ('1','2')
2:mysql 分批统计
select count(id) from table where id in ('1','2') group_by id