如何将access数据表中的重复记录项自动删除?表如下:IDNA
2007-01-11 17:43:24m***
表如下:
ID NAME
1 A
1 A
2 B
2 B
2 B
如何才能得到一个只剩一个1和2记录项的数据表?要自动实现的方法,谢谢如何将access数据表中的重复记录项自动删除?表如下:IDNAME1A1A2B2B2B如何才能得到一个只剩一个1和2记录项的数据表?要自动实现的方法,谢谢:大?
最佳回答
name1=b。name1 and a。name2=b。name2。。。。。。) 删数据: delete from table1 a where rowid !=(select max(rowid) from table1 b where a。
name1=b。name1 and a。name2=b。name2。。。。。。) 2。group by方法 查数据: select count(num), max(name) from student --列出重复的记录数,并列出他的name属性 group by num having count(num) >1 --按num分组后找出表中num列重复,即出现次数大于一次 删数据: delete from student group by num having count(num) >1 这样的话就把所有重复的都删除了。
3。
用distinct方法 -对于小的表比较有用 create table table_new as select distinct * from table1 minux truncate table table1; insert into table1 select * from table_new; select sum(bag_weight),sum(bag_total) from tdespatch 。
2007-01-11 21:31:12
很赞哦! (263)
相关文章
- 跪求Access如何求和我想把ACCE
- ACCESS数据表不能保存修改问题在A
- access中删除重复的记录但仍保留一条
- 如何将access中的数据导出为EXCE
- 如何在Access中使用表达式自动计算出
- 怎样在同一表中找到重复记录在Excel
- access怎样按日期排序access
- 怎样更改ACCESS数据内数据表的ID编
- foxpro数据库中如何删除重复记录f
- 如何用EXCEL或ACCESS对大量(9
- access中导入excel表数据问题。
- 怎么用语句删除Access数据库的一条记
- 如何在access中实现表与表之间的数据
- access表中的金额字段如何自动求出并
- access有两张表,一张表中的一个字
- sql中如何删除一个表中重复的纪录假设
- VB批量向ACCESS添加数据的方法!
- 数据库软件如何在ACCESS数据库的数
- office2010版access如何
- Access里的数据大于65300,怎
- vfp中如何删除重复数据有一个数据库,
- 跪求Access如何求和我想把ACCE
- ACCESS数据表不能保存修改问题在A
- access中删除重复的记录但仍保留一条
- 如何将access中的数据导出为EXCE
- 如何在Access中使用表达式自动计算出
- 怎样在同一表中找到重复记录在Excel
- access怎样按日期排序access
- 怎样更改ACCESS数据内数据表的ID编
- foxpro数据库中如何删除重复记录f
- 如何用EXCEL或ACCESS对大量(9
- access中导入excel表数据问题。
- 怎么用语句删除Access数据库的一条记
- 如何在access中实现表与表之间的数据
- access表中的金额字段如何自动求出并
- access有两张表,一张表中的一个字
- sql中如何删除一个表中重复的纪录假设
- VB批量向ACCESS添加数据的方法!
- 数据库软件如何在ACCESS数据库的数
- office2010版access如何
- Access里的数据大于65300,怎
- vfp中如何删除重复数据有一个数据库,