Home > Database > Mysql Tutorial > body text

mysql语法错误_MySQL

WBOY
Release: 2016-06-01 12:59:07
Original
1355 people have browsed it

报错信息

MySQL server version for the right syntax to use near

可能的原因

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

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!