in mysql, on delete cascade not working

前端 未结 4 1826
长情又很酷
长情又很酷 2021-01-17 13:04

similar to ON DELETE CASCADE not working in MySQL, but something is not right:

The ANSI Way

-- test delet         


        
4条回答
  •  旧巷少年郎
    2021-01-17 13:15

    Set the foreign_key_checks to 1, I ran into this problem while exporting and importing the data during which it was set to 0

    /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=1 */;

提交回复
热议问题