如何在使用LIKE运算符查找某些内容而不是LIKE的情况下编写mySQL查询?

select * from ets_fi where name like '%barcode&' <> '%barcode%';

最佳答案

不喜欢

select * from ets_fi where name NOT LIKE '%barcode%';


或者,如果我误解了您的意图,您可能想要:

select * from ets_fi where name LIKE '%barcode%' AND name != 'barcode';

关于mysql - 不等于的MySQL LIKE运算子,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/11763574/

10-16 15:42