1.报错信息
DB21034E The command was processedd as an SQL statement because it was not a valid Command Line Processor command.
During SQL processing it returned:
SQL20307N Table "TEST.TABLE_PART20200313" cannot be attached to table "TEST.TABLE_H".
Reason code = "1". SQLSTATE=428GE.
2.错误分析
报SQL20307N错误是因为目标表与临时表的特征不完全匹配。
根据Reason Code = "1" 可判断出错误原因为临时表与目标表列数不一致。(通过db2 ? SQL20307N查阅)
3.解决方法
比对临时表和目标表的表结构,将两者调整成一致的结构,然后再执行ATTACH命令。