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.
精彩评论