Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有以下查询:
SELECT * FROM `alerts` WHERE `title` LIKE `%template%`
这应该返回至少 3 个标题包含“模板”一词的结果,但我收到以下错误:-
据我所知,它的语法正确并调用了正确的列名。我错过了什么?
%template%对:使用单引号
%template%
SELECT * FROM `alerts` WHERE `title` LIKE '%template%'