user1626730
user1626730

Reputation: 4123

In SQLite, How do I exclude rows which contain certain strings?

Here's 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 rows under 'COLUMN' which contain '|||'. Is this possible in SQLite?

Upvotes: 4

Views: 14814

Answers (2)

juergen d
juergen d

Reputation: 204924

select * from your_table
where your_column not like '%'|||%'

SQLFiddle demo

Upvotes: 2

Shamis Shukoor
Shamis Shukoor

Reputation: 2515

select * from table where column not like '%|||%'

this should work

Upvotes: 7

Related Questions