sql字段忘记赋值

来源:互联网 发布:c 股票自动交易源码 编辑:程序博客网 时间:2024/06/07 22:37

忘记给contract_product_c 表的CONTRACT_PRODUCT_ID字段赋值

### SQL: insert into contract_product_c   (CONTRACT_PRODUCT_ID,CONTRACT_ID,FACTORY_ID,PRODUCT_NO,PRODUCT_DESC,PACKING_UNIT,CNUMBER,PRICE,AMOUNT)   values   (?,?,?,?,?,?,?,?,?)### Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Column 'CONTRACT_PRODUCT_ID' cannot be null; SQL []; Column 'CONTRACT_PRODUCT_ID' cannot be null; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Column 'CONTRACT_PRODUCT_ID' cannot be null
原创粉丝点击