DB2报错 SQLCODE=-407, SQLSTATE=23502, SQLERRMC=TBSPACEID=3, TABLEID=514, COLNO=29

According to SQLCODE, we can know that this exception is to put a non-null field into a null value

  1. First query the specific error table
select * from syscat.tables where tbspaceid='3' and tableid='514'
  1. Then query specific fields according to the query results
select * from syscat.columns where tabschema='APSADMIN' and tabname='T_APS_USER' and colno='29'

Reference: https://www.jianshu.com/p/c8d8adfb151c

Guess you like

Origin blog.csdn.net/ilvjiale/article/details/120570210
db2
db2