In SQLite How to exclude rows containing specific rows?

Here is my SQLite table (in comma-delimited format):

ROWID,COLUMN 1,"This here is a string |||" 2,"Here is another string" 3,"And yet another string" 

I want to exclude all lines under "COLUMN" that contain "|||". Is this possible in SQLite?

+4
source share
2 answers
 select * from table where column not like '%|||%' 

it should work

+7
source
 select * from your_table where your_column not like '%'|||%' 

SQLFiddle demo

+2
source

Source: https://habr.com/ru/post/1447793/


All Articles