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'

 

posted @ 2024-05-30 13:34  海乐学习  阅读(6)  评论(0编辑  收藏  举报