Home  >  Article  >  Database  >  mysql语法错误_MySQL

mysql语法错误_MySQL

WBOY
WBOYOriginal
2016-06-01 12:59:071349browse

报错信息

MySQL server version for the right syntax to use near

可能的原因

1.数据库的名字、表的名字、字段的名字,不能出现mysql的关键字。
例如, 1)desc或者asc 2)group

2.数据库的名字、表的名字、字段的名字,包含特殊字符。
例如, 假设数据库的名字是p-pet,那么就要用`p-pet`。 //注意:不是双引号,也不是单引号,而是esc键下面的那个键。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn