Reputation: 32233
I need to index a table by a string that can be pretty long (from 50 to 2000 chars aprox).
Is there a limit for the length of the sqlite's primary keys?
Upvotes: 2
Views: 1638
Reputation: 131
The maximum number of bytes in the text of an SQL statement is limited to SQLITE_MAX_SQL_LENGTH which defaults to 1000000. You can redefine this limit to be as large as the smaller of SQLITE_MAX_LENGTH and 1073741824
Upvotes: 2