在mysql建了一个有外键的表,就报了1064错误
1、[Err] 1064 -You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'type=InnoDB' at line 1,
mysql的当前版本不支持使用'type=InnoDB' 这种语法
解决方案:
这个报错是由于某些版本的mysql不支持type写法,将type关键词改成ENGINE 即可。