问题
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