2017-02-16 73 views
0

每当我按下的phpMyAdmin的Edit关键我收到以下错误:的phpMyAdmin - 内置编辑查询失败

#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 'LIMIT 0, 30' at line 1 

它指的查询是在phpMyAdmin的内置功能,所以我不知道理解为什么这是失败的。这是下面的查询:

SELECT * FROM `self`.`Condition` WHERE LIMIT 0, 30 

enter image description here

+1

删除WHERE关键字。 – jarlh

+0

删除WHERE或添加条件 – Kostis

+0

是否可以编辑PHPMyAdmin的内置命令?我意识到我可以手动输入此查询,但我不明白为什么内置函数会出现此错误。 – Colin747

回答

0

你的语法错误。试试这个

SELECT * FROM `table-name` WHERE `Condition` LIMIT 0, 30 

例如

SELECT * FROM `Orders` WHERE `company-name="HP"` LIMIT 0, 30