Right way to add column to Sqlite Database?
Posted: Thu 21 Jan 2016 12:41
Hi,
I have to add a new column (if it not exists) in my Sqlite-Database (already open) and write data into the new column.
What's the right way to do this?
Now I close the query and add the column with ExecSQL:After this I have to disconnect the connection for using the new column.
Is there a better approach?
Thank you.
I have to add a new column (if it not exists) in my Sqlite-Database (already open) and write data into the new column.
What's the right way to do this?
Now I close the query and add the column with ExecSQL:
Code: Select all
ALTER TABLE bla ADD COLUMN blubb
Is there a better approach?
Thank you.