开发者

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

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜