标签:sp on c r sql bs type as file
导出表
db2look -d dbname -e -a -x -i username -w password -o ddlfile.sql
通过表生成SQL
SELECT ‘INSERT INTO ZYMS.‘ || t1.NAME || ‘ SELECT * FROM FJDC.‘ || t1.NAME || ‘;‘ FROM sysibm.systables t1 JOIN sysibm.systables t2 ON t1.NAME=t2.NAME WHERE t1.type=‘T‘ AND t1.creator=‘ZYMS‘ AND t2.creator=‘FJDC‘
标签:sp on c r sql bs type as file
原文地址:http://www.cnblogs.com/Nadim/p/3976802.html