outer199 2015-03-16 04:36 采纳率: 0%
浏览 1702

SSH 框架项目,主键重复错误

我已经将数据库里的数据全部都删除了,插入数据的时候,但是还是报
Duplicate entry '0000000d0014c20c0907c' for key 'PRIMARY'错误,如果我debug就不报错,吧debug的话,就会报这个错误
错误详细信息:

Could not execute JDBC batch update; SQL [insert into t_fix_info (t_client_id, t_client_name, t_fix_product_type, t_fix_product_xianxiang, t_fix_type, t_fix_time, t_fix_status, t_fix_id) values (?, ?, ?, ?, ?, ?, ?, ?)]; constraint [null]; nested exception is org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update

  • 写回答

1条回答 默认 最新

  • threenewbee 2015-03-16 07:26
    关注

    根据提示是常数违例错误

    评论

报告相同问题?