php - 我遇到了一些问题。我的代码显示了一些错误
问题描述
SQLSTATE [23000]:完整性约束违规:1048 列 >'category_description' 不能为空(SQL:插入到 `tbl_category`(`category_id`,`category_name`,`category_description`,`publication_status`)>值(,sdfsf,, 1))
解决方案
您category_description
不能为空,更新该列"Allow NULL"
或为该列分配一个值。
推荐阅读
- machine-learning - “A”、“B”或“任何”类型的三元分类?
- git - git 显示已添加到 gitignore 的文件的更改?
- mysql - 如何避免mysql中的最大连接错误?
- typescript - 由同一函数声明的 Squash 变量声明
- delphi - 执行进程时 Gif 图像的动画不起作用
- bash - 陷阱命令未检测到终端调整大小 (SIGWINCH)
- sql - Postgresql 在另一个函数中调用一个函数,从主函数传递一个参数
- hexo - 版本 8.0.0 之后是否可以删除 hexo-theme-next 中的部分默认布局?
- java - Python中有没有像JPanel这样的组件?
- excel - 如何对所有 1,000 行求和以在 Excel 中获得 1,000 个总和?