SQLite database maximum storage capacity

前端 未结 2 694
星月不相逢
星月不相逢 2021-02-13 03:37

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 t

2条回答
  •  旧巷少年郎
    2021-02-13 03:57

    Based on this page:

    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.

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

提交回复
热议问题