欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  数据库

mysql版本不同所导致SQL语句执行错误的问题

程序员文章站 2022-06-12 20:08:46
...

TYPE=InnoDB;是旧版本的 在新版本执行时会出现 [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 12 解决方法:ENGINE=InnoDB

TYPE=InnoDB;是旧版本的

在新版本执行时会出现

[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 12


解决方法: ENGINE=InnoDB改为 ENGINE=InnoDB

ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;



okay