开发者

Sqlite Android Quick Question

I wanna pull a random entry in my开发者_如何转开发 database that has downloaded value as 0. How can I do this?


SELECT * FROM table WHERE downloaded=0 ORDER BY RANDOM() LIMIT 1;
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜