mysql 刪除單表內多個字段重複的數據

DELETE from lot_log_payflow WHERE (pay_no,sub_flow_type) in (SELECT pay_no,sub_flow_type from (SELECT pay_no,sub_flow_type FROM lot_log_payflow GROUP BY pay_no,sub_flow_type HAVING COUNT(*)>1) s1)
相關文章
相關標籤/搜索