筛选出sql 查询结果中 不包含某个字符

select * from table1 where patindex('%关键字%' , aa) = 0 

select * from table1 where charindex('关键字' , aa) = 0 

select * from table1 where aa like '%关键字%'

原文地址:https://www.cnblogs.com/LuoEast/p/8478197.html