数据库
首页 > 数据库> > 我可以在SQLite Android中的表中插入多少行?

我可以在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.

标签:android,sqlite,csv,rows,import-from-csv
来源: https://codeday.me/bug/20190716/1480315.html