您的位置:首页 > 博客中心 > 数据库 >

数据库——头脑风暴

时间:2022-03-14 04:30

表test003

select * from test003

技术分享

其中有二条记录一模一样,怎么找出是哪个ID出现重复了呢?

方法:

select id from test003
group by id
having count(*)>1

 

热门排行

今日推荐

热门手游