Integrity constraint violation 数据库插入错误

laravel 插入数据的时候,任我怎么插入,也还是这个错误, 不懂为什么我的主键的id ,之前的数据有一条值为‘0’。
这条错误是

违反完整性约束;

把id为0 的改了,就可以了

猜你喜欢

转载自blog.csdn.net/qq_22823581/article/details/79957801