Select and display only duplicate records in mysql

后端 未结 12 2113
南旧
南旧 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:45

    use this code

     SELECT *  
        FROM  paypal_ipn_orders 
        GROUP BY  payer_email  
        HAVING COUNT( payer_email) >1  
    

提交回复
热议问题