如果目的只是把B库中的表数据插入A库,可以:db2 connect to Adb2 "declare c cursor database B user <username > using <password> for select * from table1_of_B"db2 "load from c of cursor insert into table1_of_A"其中 <username> 和 <passwor...
显示全部如果目的只是把B库中的表数据插入A库,可以:
db2 connect to A
db2 "declare c cursor database B user <username > using <password> for select * from table1_of_B"
db2 "load from c of cursor insert into table1_of_A"
其中 <username> 和 <password> 分别是访问B库的用户和口令。
收起