良玉的博客 点点滴滴,积水成河_良玉的博客_页游、手游linux运维工程师之路

Error #1064 near “REFERENCES” while adding a foreign key

mysql创表,外键的时候,报错

Error #1064 near “REFERENCES” while adding a foreign key

改成下面的就好了:

FOREIGN KEY (`playerid`) REFERENCES `player`(`id`)  ON UPDATE CASCADE ON DELETE CASCADE;


留言列表
发表评论
来宾的头像