1. 程式人生 > >通過欄位查詢是否有重複的記錄

通過欄位查詢是否有重複的記錄

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;