开发者

Android Sqlite sqlite3_bind_parameter_count

开发者 https://www.devze.com 2023-04-10 07:38 出处:网络
Hi we want to execute statements that contain the standard sqlite named placeholderpatter like \"select * from contatct where contactid=@contactid\"

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

0

精彩评论

暂无评论...
验证码 换一张
取 消