只显示重复记录中一条: min(rowid)
select * from tmp_yx_user_0401_qy_ok where login_name
in (select login_name from tmp_yx_user_0401_qy_ok
group by login_name having count(login_name) > 1)
and rowid not in (select min(rowid) from tmp_yx_user_0401_qy_ok
group by login_name having count(login_name )>1)
正文到此结束
- 本文标签: 暂无相关标签
- 本文链接: https://www.jimmy2k.top/article/78
- 版权声明: 本文由JimmyZ的个人博客原创发布,转载请遵循《署名-非商业性使用-相同方式共享 4.0 国际 (CC BY-NC-SA 4.0)》许可协议授权