SQLite VARCHAR default size

前端 未结 3 1309
暗喜
暗喜 2021-02-06 22:54

In SQLite, when I say:

CREATE TABLE my_table 
(
    my_column VARCHAR 
);

without specifying the size of VARCHAR, what is the defa

3条回答
  •  情深已故
    2021-02-06 23:03

    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.

提交回复
热议问题