关于Mysql报错:[Err] 1064 - You have an error in your SQL syntax——解决方法【亲测有效】

今天查询SQL语句的时候突然报错了

[SQL]语句: select * from t_bonusrecord WHERE vipPhone='13164606233' order by `grantTime` desc 

[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 '语句: select * from t_bonusrecord WHERE vipPhone='13164606233' order by `grant' at line 1

关于Mysql报错:[Err] 1064 - You have an error in your SQL syntax——解决方法【亲测有效】_第1张图片

但是我的SQL语句明明没有问题,百思不得其解,最后发现了问题的所在!

发生这种错误的时候就意味着你可能勿使用了Mysql的关键字、保留字!

改一改那个字段或者换一种写法就OK啦!

关于Mysql报错:[Err] 1064 - You have an error in your SQL syntax——解决方法【亲测有效】_第2张图片

 

The end!!!

 

 

你可能感兴趣的:(Mysql)