使用 db2 导出命令导出多个 select 语句的结果?
Exporting result of multiple select statement with db2 export command?
是否可以使用 db2 "export" 命令 ( https://www.ibm.com/support/knowledgecenter/SSEPGG_11.1.0/com.ibm.db2.luw.admin.cmd.doc/doc/r0008303.html ) 导出多个 select 语句的结果,如 db2 命令行处理器(即 db2 -tvf file.sql with许多 sql 请求 file.sql) ?
此致
你是这个意思吗?
$ cat export
export to f1 of del values 1;
export to f2 of del values 2;
$ db2 -tf export
SQL3104N The Export utility is beginning to export data to file "f1".
SQL3105N The Export utility has finished exporting "1" rows.
Number of rows exported: 1
SQL3104N The Export utility is beginning to export data to file "f2".
SQL3105N The Export utility has finished exporting "1" rows.
Number of rows exported: 1
是否可以使用 db2 "export" 命令 ( https://www.ibm.com/support/knowledgecenter/SSEPGG_11.1.0/com.ibm.db2.luw.admin.cmd.doc/doc/r0008303.html ) 导出多个 select 语句的结果,如 db2 命令行处理器(即 db2 -tvf file.sql with许多 sql 请求 file.sql) ?
此致
你是这个意思吗?
$ cat export
export to f1 of del values 1;
export to f2 of del values 2;
$ db2 -tf export
SQL3104N The Export utility is beginning to export data to file "f1".
SQL3105N The Export utility has finished exporting "1" rows.
Number of rows exported: 1
SQL3104N The Export utility is beginning to export data to file "f2".
SQL3105N The Export utility has finished exporting "1" rows.
Number of rows exported: 1