Home  >  Article  >  Database  >  Duplicate entry '97112' for key 1_MySQL

Duplicate entry '97112' for key 1_MySQL

WBOY
WBOYOriginal
2016-05-31 08:46:51922browse

1、错误描述

2014-07-08 10:27:13,939 ERROR(com.you.conn.JDBCConnection:104) -com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException:Duplicate entry '97112' for key 1


2、错误原因

    插入数据时,出现主键重复


3、解决办法

    去掉主键重复的数据

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn