如何删除ACCESS数据库中重复数据?

2024-11-19 12:27:54
推荐回答(2个)
回答1:

1。select distinct * from table
2。将数据集保存到临时表
3。delete from table
4。从临时表把数据导回来

回答2:

即然不想有重复项就建个主键不就行了
或者加个自动编号列id,然后
com.execute
"delete
from
msg
where
id
not
in(select
min(id)as
id
from
msg
group
by
tit)"