通过字段查询是否有重复的记录

select cardinfo_id,issure_date, count(1) as count from so_android_hour where issure_date>='2018-12-21 23:00:00' and issure_date<='2018-12-22 09:00:00' group by cardinfo_id
having count>1;

猜你喜欢

转载自www.cnblogs.com/huiandong/p/10159864.html
今日推荐