Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In Android can I do a sql query on a cursor?

I might have more then one filter being chosen on my database, so I would like to query the database for a cursor, then do a query on that cursor to return another one.

like image 908
Seth Hikari Avatar asked May 11 '11 06:05

Seth Hikari


1 Answers

You can't do a query on a cursor. A cursor is the result of a query. It is not the source of a query. You need to do a new query for the same place you got the original cursor, with new arguments that specify the new data set you want.

like image 62
hackbod Avatar answered Sep 20 '22 10:09

hackbod