Greetings All,
I have a SQLite database that I’m trying to add a new column to an existing table. My current structure is:
ID_NO, integer
GUIDE, integer
MATERIAL, text
I would like to add a new column which is the first letter of MATERIAL
KEY, text
Here is what I tried, but I get an error that MATERIAL doesn’t exist
INSERT INTO ERG_DATA (KEY) VALUES ( SUBSTR(MATERIAL,1,1))
Is INSERT the right command? Any help would be appreciated. Thanks in advanced!
From the top of my head, you want something like this (two commands)