-4
所以我想這樣的一個基本查詢:Mysql的LIKE查詢不工作
SELECT `City`.* FROM `city` WHERE (City 'LIKE %a%')
但我得到這個錯誤的回報:
#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 ''LIKE %a%') LIMIT 0, 30' at line 1
我想我失去了一些東西出來了!
的語法是'WHERE市LIKE '%A%'' – andrewsi
把單引號* *後的'LIKE':'選擇城市*從城市哪裏(城市喜歡%1%)' –