简体   繁体   English

Android中Sqlite中的最大列数

[英]Maximum Number of Columns in Sqlite in Android

实际上我的Database(Sqlite)中有11列,现在我将列数增加到15列,这会影响我的应用程序吗?如果是,那么可行的解决方案是什么?

i think it wont. 我认为不会。

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. SQLITE_MAX_COLUMN的默认设置为2000。您可以在编译时将其更改为最大为32767的值。另一方面,许多经验丰富的数据库设计人员都会争辩说,一个规范化的数据库在一个表中最多不需要100列。

so in your case 15 would not be an issue i think. 所以我认为在您的情况下15不会成为问题。

不,只要您有足够的内存,它就不会对应用程序产生影响。请在此处检查此链接: http : //www.sqlite.org/limits.html

It wont effect the application ..... 它不会影响应用程序.....

Actually If the table grows vertically there will be performance problems... 实际上,如果表垂直增长,则会出现性能问题...

But there wont be any effect if it grows horizontally.... 但是,如果它水平增长,将不会有任何影响。

Any how i prefer you to normalize the tables if there is any possibility... 如果有任何可能,我希望您如何标准化表格...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM