PHPMyAdmin - 内置编辑查询失败

时间:2017-02-16 10:56:30

标签: mysql sql phpmyadmin

每当我按下PHPMyAdmin上的Edit键时,我都会收到以下错误:

#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 个答案:

答案 0 :(得分:0)

您的语法错误。试试这个

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

示例

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