开发者

Choosing selected section from an SQLite database

I have a database in which I have a column in which each row contain开发者_StackOverflows either "true" or "false". Is it possible for a cursor to only select the rows which have the value "true" in that column. How would you write the database query to get that?

Thanks


SELECT your_column, other_col
FROM your_table
WHERE your_column = ?

Can be used with a rawQuery()-method, which will replace the ? with your value to prevent you from SQL-injections.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜