Search code examples
sqlitenvarcharmax-size

What is the maximum size we can give for nvarchar in sqlite?


In SqlServer we can use NVarchar(MAX) but this is not possible in sqlite. What is the maximum size I can give for Nvarchar(?)?


Solution

  • There is no maximum in SQLite. You can insert strings of unlimited length (subject to memory and disk space.) The size in the CREATE TABLE statement is ignored anyway.