I was trying to generate a computed column in SQLite and using this example as a reference. https://sqlite.org/gencol.html
CREATE TABLE t1
(
a INTEGER PRIMARY KEY,
b INT,
c TEXT,
d INT GENERATED ALWAYS AS (a*abs(b)) VIRTUAL,
e TEXT GENERATED ALWAYS AS (substr(c,b,b+1)) STORED
);
I am working with SQLite 3.33.0 and it should be working perfectly fine in this version of SQLite.
Yet, when I try to implement it, I get the following:
Error while executing SQL query on database 'Test': near "AS": syntax error
What am I missing?
Thanks for your help in advance. T.