SQLite: Data Types

Storage Classes

Regardless of the type, Sqlite stores your values using one of the following storage classes:

Storage Class Rules

If a value has:

SELECT typeof ("100")                   # text
    , typeof (100)                      # integer
    , typeof (100.)                     # real
    , typeof (NULL)                     # null  
    , typeof (x'1234')                  # blob - must be complete number of bytes (i.e. can't be odd number of hexadecimal digits)
    , typeof ('2020-01-01 12:00:00');   # text