请教:关于数据导入问题
Quen 2006-11-16 08:55:13 请教:
将A表数据全部插入B表中,并判断如果A表中的关键字在B表中存在的话,则更新B表相应的记录
if not exists (select Col002 from A where col002 in (select Col002 from B))
insert into B
select * from A
else
update B set 请问更新所有字段应该怎么写,数据表有100多个字段
from A a,B b
where a.Col002 = b.Col002