Foreign key not working in MySQL: Why can I INSERT a value that's not in the foreign column?

前端 未结 10 1054
被撕碎了的回忆
被撕碎了的回忆 2020-12-01 02:38

I\'ve created a table in MySQL:

CREATE TABLE actions ( A_id int NOT NULL AUTO_INCREMENT,
type ENUM(\'rate\',\'report\',\'submit\',\'edit\',\'delete\') NOT NU         


        
10条回答
  •  甜味超标
    2020-12-01 03:07

    Well, my guess is somehow the "Skip creation of FORIEN KEYS" option is checked, it can happen in the "options" section of the "Forward Engineering" process.

    Forward Engineering - Options section

提交回复
热议问题