change sql query
This commit is contained in:
parent
168b90a01f
commit
bfefdecaf8
1 changed files with 1 additions and 1 deletions
|
@ -210,7 +210,7 @@ public class TravelDbHelper {
|
|||
TravelArticle travelArticle;
|
||||
SQLiteCursor cursor = conn.rawQuery("SELECT * FROM "
|
||||
+ ARTICLES_TABLE_NAME
|
||||
+ " WHERE title IN (SELECT title FROM "
|
||||
+ " WHERE article_id IN (SELECT article_id FROM "
|
||||
+ ARTICLES_TABLE_NAME
|
||||
+ " ORDER BY RANDOM() LIMIT 100) LIMIT 100", null);
|
||||
if (cursor.moveToFirst()) {
|
||||
|
|
Loading…
Reference in a new issue