一只特立独行的猪 一只特立独行的🐷
一只特立独行的🐷
  • 主页
  • web开发
  • 博客笔记
  • 软件工具
  • 随笔杂谈
  • 文章归档
  • 影音欣赏
  • 我的资源
  • 关于我
  • wechat_fill

mysql表名不能包含关键字

  • 2017-12-04
  • Web开发
  • 评论(0)

全栈小白一枚,服务端用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保留关键字,不能作为表名,记一下

Powered by Wordpress, Theme by Wing-magic
©2023 一只特立独行的🐷 All rights reserved
陕ICP备15006707号-5