What is the difference between related SQLite data-types like INT, INTEGER, SMALLINT and TINYINT?

前端 未结 5 1622
被撕碎了的回忆
被撕碎了的回忆 2020-12-02 06:15

When creating a table in SQLite3, I get confused when confronted with all the possible datatypes which imply similar contents, so could anyone tell me the difference between

5条回答
  •  既然无缘
    2020-12-02 06:34

    NULL. The value is a NULL value.

    INTEGER. The value is a signed integer, stored in 1, 2, 3, 4, 6, or 8 bytes depending on the magnitude of the value.

    REAL. The value is a floating point value, stored as an 8-byte IEEE floating point number.

    TEXT. The value is a text string, stored using the database encoding (UTF-8, UTF-16BE or UTF-16LE).

    BLOB. The value is a blob of data, stored exactly as it was input.

提交回复
热议问题