Access数据库删除重复记录,只保留一条记录的做法
Access数据库删除重复记录,只保留一条记录的做法:
只保留id最小的记录方法:
delete from [表名] where id not in (select min(id) from [表名] group by [带重复记录的字段名称])
只保留id最大的记录方法:
delete from [表名] where id not in (select max(id) from [表名] group by [带重复记录的字段名称])
转载请注明出处!小鱼阁工作室 -专注zencart建站,织梦企业建站,ecshop商城,二次开发,产品采集,模板修改!技术QQ 631992791