[英]I faced some problems. my code shows some error
SQLSTATE [23000]:违反完整性约束:1048列>'category_description'不能为空(SQL:插入到`tbl_category`(`category_id`,`category_name`,`category_description`,`publication_status`)>值(,sdfsf,, 1))
您的category_description
不能为null,请将该列更新为"Allow NULL"
或为该列分配一个值。
Your insert query is showing that you are not passing required values ie 您的插入查询显示您没有传递必需的值,即
insert into `tbl_category` (`category_id`, `category_name`, `category_description`, `publication_status`) >values (, sdfsf, , 1)
Assign a value to category_description
or change the default value to 'NULL' in DB for that column. 在
category_description
分配一个值,或在DB中将该列的默认值更改为'NULL'。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.