c++ - 来自 QT 的 SQLite 最大列数配置

标签 c++ sqlite qt configuration

我想在 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/

相关文章:

iOS:是否使用单例访问sqlite数据库

c++ - Qt 有资源系统限制吗?

c++ - 澄清想要重新。 C++ 类型特征

c++ - sleep_until 过去的某个时间点

c++ - 推断没有类型元数据的虚拟机的数据类型

c++ - 如何在自己的类中使用 wxWidgets 类型?

c# - 将大型数据集从 sql server 迁移到 sqlite 的最快方法

python - 如何使用SQLAlchemy在SQLite上创建全文检索索引并进行查询?

c++ - qDebug 没有打印包含二进制数据的完整 QByteArray

c++ - 提交 Qt 5.3 应用程序以供 Mac App Store 审核