I've been trying to learn how to use SQLite databases over the last few days and so far have managed to create a table and add some data, including via variables, but more by 'recipe' than complete understanding so far, but its working!
However, I'm now struggling to add columns to an existing database.
I've looked up the SQL syntax:
Code: Select all
ALTER TABLE table
ADD COLUMN column_definition;
Code: Select all
put "CREATE TABLE test4 (Col1 char(50), Col2 char(50))" into tSQL
revExecuteSQL gConID,tSQL
Code: Select all
put "CREATE TABLE test4 (Col1 char(50), Col2 char(50))" & "ALTER TABLE test4 ADD COLUMN (Col5 char(50))" into tSQL
Grateful for any hints!
Kind regards,
Glenn