Generated column support was added to SQLite in version 3.31.0, which was released on 22 January 2020.
Generated columns and computed columns are the same thing. They are columns whose values are a function of other columns in the same row.
In SQLite, generated columns are created using the GENERATED ALWAYS
column-constraint when creating or altering the table.
There are two types of generated column; STORED
and VIRTUAL
. Only VIRTUAL
columns can be added when altering a table. Both types can be added when creating a table.
Continue reading →