可能重复:
在 phpMyAdmin 中设置外键?
ALTER table podcategory add FOREIGN KEY (category_id)
REFERENCES category(category_id)
ON UPDATE RESTRICT
ON DELETE CASCADE
当我在 phpmyadmin 中发送脚本时出现错误
Can't create table './C292729_T25027/#sql-be0_30ed238.frm' (errno: 150)
如何添加这个外键?