项目开发的时候遇到一个问题:SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'customer' cannot be null,其实是由于插入的时候customer字段为null,但数据库中该字段设置为非空,所以报错,可以将customer字段设置为允许为空就OK了。
SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'customer' cannot be null
最新推荐文章于 2024-05-07 14:59:54 发布