English 中文(简体)
Android数据库的限制
原标题:Limit of database on Android

我是Android数据库的新人,我刚开始学习数据库。我有一些问题。

1. 应用程序可访问的数据库最大限量(大小)是多少。

2. 如果我使用一个使用数据库的应用程序,并将该应用程序安装在新设备上,是否有可能也将数据库转移到新设备(例如,应用程序本身有一个通过蓝牙发送的选项)。

3. 是否有可能使用Sqlite数据库以外的数据库。

问题回答
  1. Maximum size of database depends on the memory space available to the app.
  2. When you will install app in new device it will create fresh database. There may be methods to receive the records from database in another device and save them in new device which is your implementation as in case of contacts ( you can send contacts from one device to another and save them ).
  3. Yes , You can use other Database also but Android provides native support to only SQLite. Does Android support any other database system other than SQLite?

1)和roid.database.sqlite.sqlite.SQLiteDatabase有办法获得数据库最大尺寸MeximumSize () 。

2)不可能。但从您的应用程序中,您可以读取数据库并将其写入 SDCard,同样您也可以从 SDCard 读取数据库并替换现有数据库。

3),检查此链接 Does Android支持SQLite以外的任何其他数据库系统?

  1. 对于数据库中数据存储的大小没有这样的限制。您可以存储尽可能多的数据,只要设备上有免费空间。

  2. 设备之间分享数据的最佳方式是使用数据备份存储云上的数据,然后从云中提取数据到设备。 参见 < a href="http:// developmenter.android.com/guide/topics/ data/ repackup. html" rel=“ nofollow”>数据备份 。

  3. 我不认为其他任何数据库都由机器人支持。 SQLite 是一个必要条件。 尽管其他数据库, 如亚马逊简单 DB 确实提供< a href=> http://aws. amazon.com/sdkforandroid/" rel=“ nofollow” >android APIs < /a> 来存储云中的数据, 您也可以使用远程数据库存储数据, 并同时让其他设备使用 。





相关问题
what is wrong with this mysql code

$db_user="root"; $db_host="localhost"; $db_password="root"; $db_name = "fayer"; $conn = mysqli_connect($db_host,$db_user,$db_password,$db_name) or die ("couldn t connect to server"); // perform query ...

Users asking for denormalized database

I am in the early stages of developing a database-driven system and the largest part of the system revolves around an inheritance type of relationship. There is a parent entity with about 10 columns ...

Easiest way to deal with sample data in Java web apps?

I m writing a Java web app in my free time to learn more about development. I m using the Stripes framework and eventually intend to use hibernate and MySQL For the moment, whilst creating the pages ...

join across databases with nhibernate

I am trying to join two tables that reside in two different databases. Every time, I try to join I get the following error: An association from the table xxx refers to an unmapped class. If the ...

How can I know if such value exists in database? (ADO.NET)

For example, I have a table, and there is a column named Tags . I want to know if value programming exists in this column. How can I do this in ADO.NET? I did this: OleDbCommand cmd = new ...

Convert date to string upon saving a doctrine record

I m trying to migrate one of my PHP projects to Doctrine. I ve never used it before so there are a few things I don t understand. In my current code, I have a class similar to this: class ...

热门标签