Home > Database > Mysql Tutorial > body text

mysql添加数据问题,急、急、急

WBOY
Release: 2016-06-06 09:35:30
Original
971 people have browsed it

mysql数据

添加hibernate支持后用junit测试添加数据发现一个奇怪的问题,数据库里有两张表,一个商家表(参照表),一个商品表(外键表),测试之前有在数据表添加一些数据,第一次测试添加数据后在数据表里发现参照表的id居然跟着外键表的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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!