2017-02-16 46 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