workbenchでinsertがエラーになってしまいます。
ソース
insert into table(code,nm,company,cont) values('1',2,3,'4');
と入力して実行したのですが、
Error Code: 1452. Cannot add or update a child row: a foreign key constraint fails (db_dd.tenant, CONSTRAINT TENANT FOREIGN KEY (code, nm) REFERENCES tenant_ancillary_info (code, e_nm)) 0.000 sec
と出てしまいます。
insertでのcannot add エラーわかるかたいたらお願いいたします。
回答2件
あなたの回答
tips
プレビュー