This works for me
String sFilter = KEY_DATA + " LIKE '%" + queryString + "%'";
return mDb.query(DATABASE_TABLE, new String[] {KEY_ROWID, KEY_DATA,
KEY_LAST_MODIFIED}, sFilter, null, null, null, null);On Feb 16, 6:26 am, hc <[email protected]> wrote: > I want to do a query equivalent to this > > "SELECT * FROM search_table WHERE keyword LIKE '%abc%'"; > > How can I do this? I have tried out different methods using rawQuery > but I can't do this. Hope someone can hep with this. THanks --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

