我很黑! 发表于 2016-10-19 09:15:12

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

  TYPE=InnoDB;是旧版本的
  在新版本执行时会出现
   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
页: [1]
查看完整版本: mysql版本不同所导致SQL语句执行错误的问题