필터 지우기
필터 지우기

how to test error

조회 수: 4 (최근 30일)
Isee You
Isee You 2012년 3월 4일
this error hapens when i save data to my data base(mysql) i want to a code to test this error .if it happens i can do any ting like "msg" or any thing so the program run without any error shows on command window
the error is
Error using com.mysql.jdbc.JDBC4PreparedStatement/executeBatch
Java exception occurred:
java.sql.BatchUpdateException: Duplicate entry '1-56' for key
'PRIMARY'
at
com.mysql.jdbc.PreparedStatement.executeBatchSerially(PreparedStatement.java:2020)
at
com.mysql.jdbc.PreparedStatement.executeBatch(PreparedStatement.java:1451)

채택된 답변

Honglei Chen
Honglei Chen 2012년 3월 5일

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Database Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by