Deprecated: Function create_function() is deprecated in /www/wwwroot/blog.fenewbee.com/usr/plugins/AntiSpam/Plugin.php on line 75
mysql表名不能包含关键字 - A Maverick Pig - - Life is more than just the present, but also poetry and the distance.

A Maverick Pig -

生活不止眼前的苟且
还有诗和远方

mysql表名不能包含关键字

全栈小白一枚,服务端用nodejs,数据库mysql,新建了个库,查询的时候发现,出现以下错误:

ER_PARSE_ERROR: 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 '\"user\" ORDER BY id desc' at line 1

看了一下没明白什么问题,查了一下资料才知道,user是mysql保留关键字,不能作为表名,记一下

本原创文章未经允许不得转载 | 当前页面:A Maverick Pig - » mysql表名不能包含关键字

评论