DBeaver mysql 外键设置了级联删除,子表无法添加数据
报错:Cannot add or update a child row: a foreign key constraint fails...
解答:有可能是外键建错字段了,去检查下。
表创建外键,一定要注意 字段是可选的,点一下就会出来下拉箭头
被坑很多次,特写提醒
报错:Cannot add or update a child row: a foreign key constraint fails...
解答:有可能是外键建错字段了,去检查下。
表创建外键,一定要注意 字段是可选的,点一下就会出来下拉箭头
被坑很多次,特写提醒