D
dwj_dd
Unregistered / Unconfirmed
GUEST, unregistred user!
有两个表A和B,A为动态表,每天新增,B表中数据为第二天由A表导入,如果
我想第二天只向B表中增加A表中新增部分的数据(即使A表与B表同步)用SQL
句怎么样实现?十万火急!!!!!!!!!!!!!!!
我写的以下语句运行后结果不对
insert into b (one,two,three) select a.one,a.two,a.three from a
where exists (select a.one,a.two,a.three from a
where a.one<>b.one)
我想第二天只向B表中增加A表中新增部分的数据(即使A表与B表同步)用SQL
句怎么样实现?十万火急!!!!!!!!!!!!!!!
我写的以下语句运行后结果不对
insert into b (one,two,three) select a.one,a.two,a.three from a
where exists (select a.one,a.two,a.three from a
where a.one<>b.one)