0
点赞
收藏
分享

微信扫一扫

SQL Server 表中删除重复行

前言

     MySQL去重例子

​​https://blog.51cto.com/fengyuzaitu/2687655 ​​

​​​​​https://blog.51cto.com/fengyuzaitu/5790968​​

select id,name,age from user a where id in ( select max(id) as id from user b group by age )

这条语句是获取年龄不重复的用户,但是用在SQL Server无法生效


解决方案

​​从 SQL Server 表中删除重复行 - SQL Server | Microsoft Learn​​


举报

相关推荐

0 条评论