如何利用作业执行不同数据库间数据的迁移? 先创建存储过程,再用业调用,也可以在作业中直接写Sql语句,但要注意把库名明确. 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 在B库中:insert into bselect a.* from a.a awhere not exists(select 1 from b.b b where a.f1=b.f1) and a.f3=0 在B上创建一个存储过程:insert into bselect * from a.table1where a.f3=0 and f1 not in (select f1 from table1)然后新建作业~~~ 如果是insert into bselect a.* from a.a awhere a.f1 not in (select f1 from b.b b) and a.f3=0这样性能会受到影响吗? lzhs(快乐至上) 老兄,出错了,提示Invalid object name 'a.a' 首先要确定你有a这个数据库,在a中还要有a这个表! 数据库编程中如何区别不同用户的操作权限 获取id的问题 sql小问题!!!! 求一个有意思的写法,请帮忙 :) 如何确定创建的用户表是用哪一个存储过程生成的? 为什么那么慢呢? 请多关照 http://www.XBitSoft.Net 请问... 高分请教Informix如果插入一条字符串纪录,当引号之间的字符数大于256时会报错,如何解决? 安装求助:在SQL2014无management studio情况下修改sa口令 两个数据表的数据转移问题 急! 大对象问题(text,ntext,image)高分呼唤高手
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
insert into b
select * from a.table1
where a.f3=0 and f1 not in (select f1 from table1)然后新建作业~~~
如果是
insert into b
select a.* from a.a a
where a.f1 not in (select f1 from b.b b) and a.f3=0
这样性能会受到影响吗?