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

版权声明:本文为博主原创文章,未经博主允许不得转载! https://blog.csdn.net/MaNongXf/article/details/86235104

今天查询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

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

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

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

The end!!!

猜你喜欢

转载自blog.csdn.net/MaNongXf/article/details/86235104