软件开发Db2

db2 export to 导出做追加?

db2 export to *.del of del ,多次执行export导出到同一个文件,如何能让export不是进行覆盖而是在后面做追加记录。显示全部

db2 export to *.del of del ,多次执行export导出到同一个文件,如何能让export不是进行覆盖而是在后面做追加记录。

收起
参与10

查看其它 1 个回答cfpl_900的回答

cfpl_900cfpl_900联盟成员数据库管理员安信证券

db2 export to filename of del/ixf ....
If the name of a file that already exists is specified, the export utility overwrites the contents of the file; it does not append the information.
所以使用export导出数据到同一个文件并不会追加,只会覆盖。

但导出数据是为了导入的,导出时使用不同的文件名,并不会影响导入的。
使用db2 import from filename of del/ixf  insert into   可以将不同的文件追加导入。

证券 · 2023-04-03

回答者

cfpl_900
数据库管理员安信证券

cfpl_900 最近回答过的问题

回答状态

  • 发布时间:2023-04-03
  • 关注会员:3 人
  • 回答浏览:951
  • X社区推广