access数据表合并问题
来源:百度知道 编辑:UC知道 时间:2024/06/10 07:11:58
现有两个数据表a和b,想把它们合并,并且删除其中重复的记录。
该如何处理呢?
希望详细的步骤。
谢谢!!!!
Select * into c from
(select distinct 字段名 from
(select * from a
Union select * from b))
运行后的答案,大家看看。
该如何处理呢?
希望详细的步骤。
谢谢!!!!
Select * into c from
(select distinct 字段名 from
(select * from a
Union select * from b))
运行后的答案,大家看看。
用程序去做, 大体思路是: 你遍历表b .
b.first
while not b.eof
if not (b.keyword in a)
insert b's record into a
end if
b.movenext
next
你什么样的表都不说清楚,怎么告诉你应该怎么做呢?