美文网首页
[Err] 1064 - You have an error i

[Err] 1064 - You have an error i

作者: 牛哞哞杂记 | 来源:发表于2019-10-04 00:11 被阅读0次

运行sql文件时,出现这个错误:
[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 ‘USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=79 DEFAULT CHARSET=utf8’ at line 7

提示在第七行,第七行语句含义是"将唯一关键字‘co_id’使用二叉树",语句是:

UNIQUE KEY `co_id` (`co_id`) USING BTREE

网上找了下解决办法,将语句改变下位置,USING BTREE写在(co_id)前就可以了。
如下:

UNIQUE KEY `co_id` USING BTREE (`co_id`) 

为什么修改后就可以运行成功的具体原因暂不明。。。

相关文章

网友评论

      本文标题:[Err] 1064 - You have an error i

      本文链接:https://www.haomeiwen.com/subject/vuejpctx.html