Why 'foreign key constraint fails' when foreign key exists?

后端 未结 3 1543
没有蜡笔的小新
没有蜡笔的小新 2021-01-18 07:31

I have a simple query

UPDATE `t_timecard_detail` SET  `timeoff_request_id` = \'adad8e0d-c22b-41c3-a460-6cf982729299\' WHERE `id` = \'cfc7a0a1-4e03-46a4-af89-         


        
3条回答
  •  伪装坚强ぢ
    2021-01-18 07:58

    Foreign key constraints can't be applied to MyISAM engine.both table should use innodb engine for supporting foreign key constraints.

提交回复
热议问题