SQlite updating column numbers in java

时间秒杀一切 提交于 2020-02-06 08:28:25

问题


I have a scenario where number of columns is 2600. As mentioned in SQLite limits the maximum column supported is 2000.

Now I need to update the column numbers during run time, the definition,

The maximum number of columns can be lowered at run-time using the sqlite3_limit(db,SQLITE_LIMIT_COLUMN,size) interface.

is not clear to me.

The code I'm using is,

Class.forName("org.sqlite.JDBC");
conn = DriverManager.getConnection("jdbc:sqlite:database.db");
conn.setAutoCommit(false);
stmt = conn.createStatement();

Where should I use the update column number code snippet and how? I couldnt get any direct examples. Please help.

EDIT:

The default setting for SQLITE_MAX_COLUMN is 2000.
You can change it at compile time to values as large as 32767.

How can i do this in sqlite jdbc??

来源:https://stackoverflow.com/questions/24549425/sqlite-updating-column-numbers-in-java

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!