I am new to SQLite. I want to add a column if it does not exist.
How to check if the column name exists and then add if it does not?
I tried
ALTER TABLE table ADD COLUMN colname INTEGER ON CONFLICT IGNORE
But it shows an error
Result: near "ON": syntax error
Any advice how it can be achieved?
Thanks in advance.