-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%)' –