当前位置:首页 > 数据库 > SQlite

我可以在SQLite Android中的表中插入多少行?

我有一个50万行的CSV文件.
我要将所有CSV文件行插入到在SQLite Android中创建的表中.
我想知道我可以在SQLite的任何表中插入多少行?

解决方法:

从sqlite3文档:

Maximum Number Of Rows In A Table

The theoretical maximum number of rows in a table is 264
(18446744073709551616 or about 1.8e+19). This limit is unreachable
since the maximum database size of 14 terabytes will be reached first.
A 14 terabytes database can hold no more than approximately 1e+13
rows, and then only if there are no indices and if each row contains
very little data.

有关限制,请参阅this;有关性能特性,请参见this question.


【说明】本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!