在SQLite中,如何排除包含某些字符串的行?

时间:2012-11-22 18:05:37

标签: sql sqlite

这是我的SQLite表(用逗号分隔的格式):

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

我想排除'COLUMN'下包含'|||'的所有行。这在SQLite中是否可行?

2 个答案:

答案 0 :(得分:7)

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

这应该有效

答案 1 :(得分:2)

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

SQLFiddle demo