先创建存储过程,再用业调用,也可以在作业中直接写Sql语句,但要注意把库名明确.

解决方案 »

  1.   

    在B库中:
    insert into b
    select a.* from a.a a
    where not exists(select 1 from b.b b where a.f1=b.f1) and a.f3=0
      

  2.   

    在B上创建一个存储过程:
    insert into b
    select * from a.table1
    where a.f3=0 and f1 not in (select f1 from table1)然后新建作业~~~
      

  3.   


    如果是
    insert into b
    select a.* from a.a a
    where a.f1 not in (select f1 from b.b b) and a.f3=0
    这样性能会受到影响吗?
      

  4.   

    lzhs(快乐至上) 老兄,出错了,提示Invalid object name 'a.a'
      

  5.   

    首先要确定你有a这个数据库,在a中还要有a这个表!