我的不能重復執行啊,第二次執行測試代碼就會報錯,感覺那個異常沒起作用
Duplicate entry '1000-13265847562' for key 'PRIMARY'
### The error may involve defaultParameterMap
### The error occurred while setting parameters
### SQL: insert ?into success_killed(seckill_id,user_phone) ? ? ? ? values ?(?,?)
### Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Duplicate entry '1000-13265847562' for key 'PRIMARY'
; SQL []; Duplicate entry '1000-13265847562' for key 'PRIMARY'; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Duplicate entry '1000-13265847562' for key 'PRIMARY'
2018-10-29
聯合主鍵,你插入重復主鍵數據當然報錯啦
2018-08-15
mysql的異常
SQL: insert ?into success_killed(seckill_id,user_phone) ? ? ? ? values ?(?,?)
sql寫對了嗎?
2018-08-15
問題解決了嗎?