【发布时间】:2014-04-06 06:22:11
【问题描述】:
假设我在 sqlite3 数据库(通过 python)中有一个名为 table1 的表,其中包含名为“id”和“string”的两列,这是表中的三个条目:
id string
'a' 'google'
'b' 'apple'
'c' 'application'
假设我想要所有包含“app”的行,那么我该怎么做呢?我正在寻找这样的东西:
SELECT * FROM table1 WHERE 'app' in string
理论上会返回最后两行....
【问题讨论】: