开发者

Is there any possibility to insert bulk of records with in second in database in android?

I want to insert 400 questions into database with in a second. Please let me know if any one knows the example or an开发者_JS百科swer. Your help is much needed and appreciated. Thanks in advance....

Thank you, Krishna


Use a compiled statement.

How do I use prepared statements in SQlite in Android?

There's a helper class in android that you can use to make things a bit easier also. It's DatabaseUtils.InsertHelper and here is a good tutorial on how to use it.


Insert into the database in separate thread. Use prepared statements.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜