美文网首页
DB2根据报错信息查询出具体报错的字段(SQLCODE=-407

DB2根据报错信息查询出具体报错的字段(SQLCODE=-407

作者: 马木木 | 来源:发表于2018-08-27 17:11 被阅读0次

根据SQLCODE我们可以知道此异常是将非空的字段放入了空值

1.先查询出具体报错的表

select * from syscat.tables where tbspaceid='3' and tableid='514'

2.再根据查询出的结果查询具体的字段

select * from syscat.columns where tabschema='APSADMIN' and tabname='T_APS_USER' and colno='29'

相关文章

网友评论

      本文标题:DB2根据报错信息查询出具体报错的字段(SQLCODE=-407

      本文链接:https://www.haomeiwen.com/subject/bjstwftx.html