MYSQL执行sql语句报错——ERROR 1064 (42000)

发布时间:2024-12-12 01:10

SQL数据库管理:MySQL或SQL Server的基本操作 #生活技巧# #工作学习技巧# #编程语言学习路径#

最新推荐文章于 2024-09-18 09:44:03 发布

临渊行 于 2019-12-01 22:34:50 发布

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。

错误信息:

错误语句:create database 'mmall' default character set utf8 collate utf8_general_ci;
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 ''mmall' default character set utf8 collate utf8_general_ci' at line 1

原因:

语句本身没毛病,是语法上的错误,在MySQL中,为了区分MySQL的关键字与普通字符,MySQL引入了一个反引号。蛋疼啊,反引号:(`) 详情见:https://dev.mysql.com/doc/refman/5.5/en/keywords.html

网址:MYSQL执行sql语句报错——ERROR 1064 (42000) https://www.yuejiaxmz.com/news/view/448357

相关内容

windows cmd 执行sql文件ERROR 1064 (42000):You have an error in your SQL syn报语法错误解决办法
安装mysql修改root密码出现1064(42000)错误
MySQL——MySQL SELECT查询非分组聚合列(sql
修改用户密码 set password for 'user'@'localhost'=password(“password1”);
DB2 SQL Error: SQLCODE=
PowerBuilder连接SQLServer失败 SQL State:‘28000’
mysql (8)=====用户授权管理
SQL insert into 语句的写法
5分钟学会MySQL
SQL Server数据库性能优化(一)之 优化SQL 语句

随便看看