我想准备一个LOAD实用程序来将数据加载到DB2表中。该表具有包含GENERATEDALWAYS功能集的列。在DB2中使用IMPORT而不是LOAD
因此,我无法从表中加载卸载的细节。
是否有可能对具有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列以获得旧值?
感谢您的帮助。
感谢, 马修礼居