insert时报Cannot add or update a child row: a foreign key constraint fails (`yanchangzichan`.`products
Posted 冷萧峰
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了insert时报Cannot add or update a child row: a foreign key constraint fails (`yanchangzichan`.`products相关的知识,希望对你有一定的参考价值。
mybatis在insert时报Cannot add or update a child row: a foreign key constraint fails (`yanchangzichan`.`productstatusrecord`, CONSTRAINT `p_cu` FOREIGN KEY (`cid`) REFERENCES `customer` (`cid`))错误,重点在“a foreign key constraint fails”,说明主表和附表有外键关联,无法插入为空的值。解决方案:1):取消表的外键 ,2)插入值不能有空值
以上是关于insert时报Cannot add or update a child row: a foreign key constraint fails (`yanchangzichan`.`products的主要内容,如果未能解决你的问题,请参考以下文章
Mysql使用Navicat建立外键时报错cannot add foreign key constraint分析
git在提交时报错error invalid path cannot add to the index的解决办法
编译安装apr 1.5.2 时报 rm: cannot remove `libtoolT': No such file or directory
网络原因导致的 spring cloud config 读取git上的配置文件时报错:Cannot clone or checkout repository
libcaffe.so.1.0.0: cannot open shared object file: No such file or directory 运行时报错