Android with SQlite数据库有问题吗? [英] Android With SQlite database Question?
本文介绍了Android with SQlite数据库有问题吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有两个不同的SQLite表,我想同时将数据上载到两个表中而没有任何死锁.我尝试过,但是只有一个表要更新,一旦第一个表完成,然后只有第二个表就更新.因此,如果我想同时将数据插入两个表中,该怎么办.
Hi,
I have two different SQLite tables and i want to upload data into two tables at the same time with out any deadlock. I tried but only one table is getting to update and once first one will complete then only second table is getting to update. So if i want to insert data into two tables same time what should i do.
推荐答案
您可以使用线程并在不同的线程上更新每个表-不知道SQLite是否会允许.
此 google搜索 [
You may be able to utilise threading and update each table on a different thread - don''t know if SQLite will allow that though.
This google search[^] has several articles and posts on threading with SQLite on Android
这篇关于Android with SQlite数据库有问题吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文