分享到: ------解决方案-------------------- 假设你的用户表有个主键id select * from 用户表 t where exists(select 1 from 用户表 where username=t.username and id t.id); ------解决方案--------------------
select * from tbname group by name having count(name)>1
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn