SQL 查询某字段重复的记录
查询 callid字段 重复的数据
SELECT * FROM cti_cdr WHERE callid IN ( SELECT callid FROM cti_cdr GROUP BY callid HAVING COUNT(*) > 1 ) and timestart >'2021-05-01 00:00:00'
查询 callid字段 重复的数据
SELECT * FROM cti_cdr WHERE callid IN ( SELECT callid FROM cti_cdr GROUP BY callid HAVING COUNT(*) > 1 ) and timestart >'2021-05-01 00:00:00'