在命令行里用sql语句建表时,发生了ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your My
在命令行里用sql语句建表时,发生了ERROR 1064 (42000): 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 'datebase db1' at line 1
mysql> Create Datebase db1;报错
起初我是这样写入
后来查了资料单纯以为是语法上的错误:在Mysql中,为了区分mysql的关键字与普通字符,MySQL引入了反引号 。(tab上面的那个键)
然后修改后为: 发现还是报错,索性把SQL语句全部大写才得以解决。
报错是解决了,可我想不通的是MYSQL数据库的SQL语句不是不用区分大小写吗,为什么小写也报错呐。。。
来源地址:https://blog.csdn.net/KiyonoLee/article/details/127019928
--结束END--
本文标题: MYSQL数据库报错 ERROR 1064 (42000) 解决方案
本文链接: https://www.lsjlt.com/news/395934.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
下载Word文档到电脑,方便收藏和打印~
2024-05-21
2024-05-21
2024-05-21
2024-05-21
2024-05-21
2024-05-21
2024-05-21
2024-05-21
2024-05-21
2024-05-21
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0