22,294
社区成员
发帖
与我相关
我的任务
分享--2005
insert into B(col1,col2)
select * from
(
select col1,col2 from A
except
select col1,col2 from B
)tinsert into B(col1,col2)
select col1,col2 from A
except
select col1,col2 from Binsert b (col1,col2) select col1,col2 from a where not exists(select 1 from b where col1=a.col1 and col2=a.col2)