Quantcast
Channel: CodeSection,代码区,SQL Server(mssql)数据库 技术分享 - CodeSec
Viewing all articles
Browse latest Browse all 3160

SQL表内查重 sql SQLServer SQL语句 SQL表内查重

$
0
0

SQL表内查重,查询重复记录

select * from my_tab
where dup_col in(
select dup_col from my_tab
group by dup_col
having count(dup_col)>1
)
order by dup_col;

Viewing all articles
Browse latest Browse all 3160

Trending Articles