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

前端 未结 7 2160
无人及你
无人及你 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:11

    this is a select command

       FROM
        user
    WHERE
        application_key = 'dsfdsfdjsfdsf'
            AND email NOT LIKE '%applozic.com'
            AND email NOT LIKE '%gmail.com'
            AND email NOT LIKE '%kommunicate.io';
    

    this update command

     UPDATE user
        SET email = null
        WHERE application_key='dsfdsfdjsfdsf' and  email not like '%applozic.com' 
        and email not like '%gmail.com'  and email not like '%kommunicate.io';
    

提交回复
热议问题