insert A (whbh,cbh sl)
from
select * from b
where b.cbh not in(select cbh from A where A.whbh=:whbh)
上面的whbh是动态传的。在表B中没有,怎样把这个whbh值也添加到A表中去。
...全文
281打赏收藏
一个小问题
表A,(whbh,cbh,sl) 表B.(dh,cbh,sl) 把表a在b中没有的cbh 的这条记录添加到表A中 insert A (whbh,cbh sl) from select * from b where b.cbh not in(select cbh from A where A.whbh=:whbh) 上面的whbh是动态传的。在表B中没有,怎样把这个whbh值也添加到A表中去。