我想在 Sqlite 数据库中存储具有 65536 列的行,我正在使用 C++ 和 QT 来实现。
我的问题是:由于默认的最大列数似乎不再是 2000,如何从 C++ 和 Qt 配置此参数?
谢谢。
最佳答案
SQLLite homepage对此有一些解释:
2.Maximum Number Of Columns
The SQLITE_MAX_COLUMN compile-time parameter is used to set an upper bound (...)
和
The default setting for SQLITE_MAX_COLUMN is 2000. You can change it at compile time to values as large as 32767. On the other hand, many experienced database designers will argue that a well-normalized database will never need more than 100 columns in a table.
这样一来,就算你提高了,也只能达到你想要的一半。除此之外,我只能引用 Styne666 对您帖子的评论。
关于c++ - 来自 QT 的 SQLite 最大列数配置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10732860/