sql语句删除数据出现1451 - Cannot delete or update a parent row: a foreign key constraint fails (`crashcourse
今天学习使用sql语句删除数据时,会出现如下面内容的报错:DELETE FROM orders WHERE order_num=20009> 1451 - Cannot delete or update a parent row: a foreign key constraint fails (`crashcourse`.`orderitems`, CONSTRAINT `fk_orderitems_orders` FOREIGN KEY (`order_num`) REFERENCES `o
原创
2021-09-23 11:00:35 ·
7349 阅读 ·
1 评论