关于这个问题:
Android 上的 SQLite 如何处理长字符串? https://stackoverflow.com/questions/3068180/how-sqlite-on-android-handles-long-strings
它说默认 SQLite 存储为 10 亿。这与实际站点相同。
然而,正如该人士所说,这个数字可能会更少。我想知道它们是否是一种检查/这个值是什么的方法?
Thanks!
字符串或 BLOB 的最大长度
SQLite 中字符串或 BLOB 的最大字节数由预处理器宏 SQLITE_MAX_LENGTH 定义。该宏的默认值为 10 亿(1 亿或 1,000,000,000)。你
可以使用命令行在编译时提高或降低该值
像这样的选项:
-DSQLITE_MAX_LENGTH=123456789
The current implementation will only support a string or BLOB length up to 231-1 or 2147483647. And some
built-in functions such as hex() might fail well before that point. In
security-sensitive applications it is best not to try to increase the
maximum string and blob length. In fact, you might do well to lower
the maximum string and blob length to something more in the range of a
few million if that is possible.
在 SQLite 的 INSERT 和 SELECT 处理过程中,数据库中每一行的完整内容被编码为单个 BLOB。所以
SQLITE_MAX_LENGTH 参数还确定最大数量
连续字节。
From http://www.sqlite.org/limits.html http://www.sqlite.org/limits.html.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)