How to use rawQuery with Variable?
Cursor mCursor = mDb.rawQuery("select * from notes2 where title=\"title1\"",
null);
it's worked....
but I want to use variable instead of String... like this
String str = "title1";
Cursor mCursor = mDb.rawQuery("select * from notes2 where title= str",
null);
it's stopped unexpected. Could anyone tell me how to use?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---