我有一个名为“order”的数据库表,它通过外键引用另一个名为“传递”的表。我需要删除在某一日期之前修改的交付,但在删除引用它们的订单之前,我不能这样做。DELETE FROM `order`,`delivery` WHERE order.delivery_id = delivery.id AND delivery.modifiedOn< '2016-2-28 23:59:59'1064 -您的SQL语法有一个错误;检查与您
以下是我迄今尝试过的:ERROR 1064(42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL serverversion for the right syntax to use near 'foreign key fk_targets_visi