How to find duplicates in 2 columns not 1

后端 未结 6 871
别跟我提以往
别跟我提以往 2020-12-04 05:59

I have a MySQL database table with two columns that interest me. Individually they can each have duplicates, but they should never have a duplicate of BOTH of them having th

6条回答
  •  生来不讨喜
    2020-12-04 06:50

    You can find duplicates like this..

    Select
        stone_id, upcharge_title, count(*)
    from 
        particulartable
    group by 
        stone_id, upcharge_title
    having 
        count(*) > 1
    

提交回复
热议问题