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 table where not field like '%#%'
它不返回任何记录。
最终字符串将通过 PHP 传递给 Mysql,我只需要 sql。
select * from table where not (column1 like '%value1%')
如果您有多个“非”值:
select * from table1 where not (column1 like '%value1%' or column1 like '%value2%' or column1 like'%value3%')