I figured out the issue I was having:

SQLiteDatabase.rawQuery is only for select statements. It will gladly
accept other SQL statements, such as updates, and it will compile them
and then drop them without any feedback. For DML, you can use
SQLiteDatabase.execSQL.

I still don't see a way to pass an expression through
SQLiteDatabase.update. If you want the protection/speed of prepared
statements with expressions, Android does include the java.sql package.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to