MySQL如何設置外鍵約束cannot add foreign key constraint設置外鍵約束失敗原因

建立外鍵SQL語法 ALTER TABLE yourtablename ADD [CONSTRAINT 外鍵名] FOREIGN KEY [id] (index_col_name, ...) REFERENCES tbl_name (index_col_name, ...) [ON DELETE {CASCADE | SET NULL | NO ACTION | RESTR
相關文章
相關標籤/搜索