Home > Database > Mysql Tutorial > body text

Duplicate entry '97112' for key 1_MySQL

WBOY
Release: 2016-05-31 08:46:51
Original
958 people have browsed it

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、解决办法

    去掉主键重复的数据

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template