Duplicate entry ‘XXX‘ for key ‘XXX.PRIMARY‘解决方案。
mysql insert时报错:Duplicate entry ‘XXX’ for key ‘XXX.PRIMARY’今天在插入数据时,出现一个错误com.jfinal.plugin.activerecord.ActiveRecordException: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Duplicate entry 'xxxxxx' for key 'xxxx.PRIMARY'
原创
2021-12-29 11:04:12 ·
18799 阅读 ·
0 评论