SQLite数据库的最大存储容量 [英] SQLite database maximum storage capacity

查看:1413
本文介绍了SQLite数据库的最大存储容量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有关于存储在SQLite数据库中的数据一个小问题。有多少记录在SQLite数据库,我们才能最大限度地保存?有没有什么限制?如果数据超出这个限制没有给出什么类型的错误?将整个系统的失败,或者有什么事情发生?

I have a small question about storing data on a SQLite database. How many records in an SQLite database can we maximally store? Is there any limitation? If the data goes beyond this limitation what type of error does it give? Will the whole the system fail, or what else happens?

推荐答案

根据页:

Android不征收超标准SQLite的任何限制   概念。我们建议,包括自动增量价值的关键领域   可以用来作为一个独特的ID来快速找到的记录。这不是   如果实现内容提供商所需的私人数据,但是,   您必须使用BaseColumns._ID常量包括一个唯一的ID。

Android does not impose any limitations beyond the standard SQLite concepts. We do recommend including an autoincrement value key field that can be used as a unique ID to quickly find a record. This is not required for private data, but if you implement a content provider, you must include a unique ID using the BaseColumns._ID constant.

该限制是绑 SQLite的限制。至于什么时候我们打的限制发生了什么,我猜Android将提高<一个href="http://developer.android.com/reference/android/database/sqlite/SQLiteFullException.html">SQLiteFullException.

The limit is tied to SQLite limitation. As for what happened when we hit that limit, I guess android will raise SQLiteFullException.

这篇关于SQLite数据库的最大存储容量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆