On 12/21/2010 11:38 AM, Mark Murphy wrote:
String[] args={"somebaldingguy"};
rawQuery("SELECT _id, title FROM books WHERE author=?", args);

The string array elements replace the question mark placeholders.
SQLite handles quotation rules for strings for you, so you do not have
to worry about embedded quotes or apostrophes.

Oh I see, so that would eliminate any worries of say, sql injection
attack right off?  Is there any other reason that one would go
through this?  Any performance gain, etc?

Thanks,

Tobiah

--
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

Reply via email to