How do I add multiple "NOT LIKE '%?%' in the WHERE clause of sqlite3?

前端 未结 7 2104
无人及你
无人及你 2020-12-23 20:06

I have a sqlite3 query like:

SELECT word FROM table WHERE word NOT LIKE \'%a%\';

This would select all of the words where \'a\' does not oc

7条回答
  •  醉梦人生
    2020-12-23 20:28

    SELECT word FROM table WHERE word NOT LIKE '%a%' 
    AND word NOT LIKE '%b%' 
    AND word NOT LIKE '%c%';
    

提交回复
热议问题