sqlServer 重复数据项处理,只选其中一条,保留一条
时间:2021-03-06 14:17:01
收藏:0
阅读:0
select * from table where id in (select max(id) from table group by [去除重复的字段名列表,....])
--删除
from table where id not in (select max(id) from table group by [去除重复的字段名列表,....])
更多访问:
https://blog.csdn.net/weixin_34138139/article/details/93280536
-删除
评论(0)