Home > Database > Mysql Tutorial > mybatis-Mybatis插入数据库出错

mybatis-Mybatis插入数据库出错

WBOY
Release: 2016-06-06 09:38:12
Original
1102 people have browsed it

mybatis数据操作数据库mysql

Mybatis插入一条数据到mysql数据库,结果发现主键重复,后台就崩溃了,有没方法可以判断插入操作可不可执行的?谢谢大家、、、

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