【发布时间】:2013-03-04 11:11:12
【问题描述】:
我想准备一个加载实用程序来将数据加载到 DB2 表中。该表的列包含 GENERATEDALWAYS 功能集。
因此,我无法从表中加载已卸载的详细信息。
是否可以对设置了 GENERATEDALWAYS 列的表使用导入?
我做的步骤:
1. db2 "export to tbl.txt of del modified by coldel| select * from <schema.table> where col=value"
2. db2 "delete from <schema.table> where col=value"
3. db2 "import from tbl.txt of del modified by coldel| allow write access warningcount1 insert into <schema.table>"
带有“GENERATEDALWAYS”的列在导入后具有新值。是否可以使用导入来填充 GENERATEDALWAYS 列以获得旧值?
感谢您的帮助。
谢谢, 马修·李菊
【问题讨论】: