sql 语句 去重

来源:互联网 发布:做淘宝最少得多钱 编辑:程序博客网 时间:2024/04/29 07:27

如两条记录不是完全重复,利用如下语句

select xx,xx,xx from table where id in (select max(id) from table group by [需要去重的字段])

原创粉丝点击