Android Sqlite sqlite3_bind_parameter_count
Hi we want to execute statements that contain the standard sqlite named placeholderpatter like "select * from contatct where contactid=@contactid"
Such statements are defined on our server for other开发者_JAVA技巧 applications (iOS, WIndowsPhone etc.)
I found nothing ind the android.database.sqlite namespace that allows such a handling, it is only the placeholder "?" provided- That really sucks, anyone experience with something like that?
We need something like this raw methods in android sqlite3_bind_parameter_count sqlite3_bind_parameter_index sqlite3_bind_parameter_name
Thank you very much.
I don't now whether there is a chance of using names but you could use compileStatement() and bind your parameters by its position in the query (e.g. by using named constants).
精彩评论