数据库查重方法

69 阅读1分钟

SELECT * FROM table_name GROUP BY user_id HAVING COUNT(*) > 1; 这个方法可以查出对应字段重复数据,user_id就是需要查重字段