In SQLite, when I say:
CREATE TABLE my_table
(
my_column VARCHAR
);
without specifying the size of VARCHAR
, what is the defa
It doesn't matter.
SQLite does not use sizes when declaring the VARCHAR
type. In fact, it almost doesn't use the type either.
You can store TEXT
in an INT
column in SQLite. And SQLite will never truncate a TEXT
column.
From what I can gather, VARCHAR
is the same as TEXT
http://www.sqlite.org/datatype3.html
Also see http://www.sqlite.org/different.html#flex
In SQLite, Text
is the parent of VARCHAR
and in the default installation is no different http://www.sqlite.org/datatype3.html.