Home > Database > Mysql Tutorial > mysql插入数据时失败但是主键id自动增加了一该如何解决

mysql插入数据时失败但是主键id自动增加了一该如何解决

WBOY
Release: 2016-06-06 09:33:41
Original
2533 people have browsed it

mysql数据

插入时因重复导致插入失败会导致id自增,第二次插入其它数据时会在会变成id加了两次的情况

Related labels:
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