mysql報錯:MySQL server version for the right syntax to use near 'type=InnoDB',syntaxinnodb

來源:互聯網
上載者:User

mysql報錯:MySQL server version for the right syntax to use near 'type=InnoDB',syntaxinnodb

工作中使用sql語句建表時,mysql報了如下錯誤:

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寫法,將type關鍵詞改成ENGINE 即可。

著作權聲明:本文為博主原創文章,未經博主允許不得轉載。

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.