Select and display only duplicate records in mysql

后端 未结 12 2112
南旧
南旧 2020-12-08 06:56

This question is pretty simple I for some reason cant get the proper result to display only the duplicate records

Table   : Paypal_ipn_orders
id                      


        
12条回答
  •  庸人自扰
    2020-12-08 07:43

    SELECT * FROM `table` t1 join `table` t2 WHERE (t1.name=t2.name) && (t1.id!=t2.id)
    

提交回复
热议问题