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

JPReddy picture JPReddy · Jan 30, 2011 · Viewed 8.6k times · Source

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

Answer

finnw picture finnw · Jan 30, 2011

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.