select * from table where instr(col1,str2)<>0oracle是instr 返回str2在str1的起始位置,如果没有就返回0不知道你是什么数据库,如果实现不行就select * from table where col1 not like '%str2%'