MYSQL查询一个表中是否存在重复的内容

SELECT * FROM table a WHERE ((SELECT COUNT(*) FROM table WHERE openid = a.openid) > 1) ORDER BY openid DESC

你可能感兴趣的:(mysql)