call SYSPROC.ADMIN_CMD('load from (select * from table1) of cursor replace into table2')
--或者
set sql1='select * from table1';
call SYSPROC.ADMIN_CMD('load from ('||sql1||') of cursor replace into table2');
本文介绍了一种使用SYSPROC.ADMIN_CMD过程在两个数据库表间进行数据迁移的方法,通过调用loadfrom和replace子句实现高效的数据同步。
call SYSPROC.ADMIN_CMD('load from (select * from table1) of cursor replace into table2')
--或者
set sql1='select * from table1';
call SYSPROC.ADMIN_CMD('load from ('||sql1||') of cursor replace into table2');
9722

被折叠的 条评论
为什么被折叠?