I have 2 question regarding ALTER TABLE.
1) How do I define the column type. Defined like this when a TABLE is created, RowStyle TEXT
2) Does SQLite have the IF DOES NOT EXIST syntax? If so how would I incorporate it into this code. If not, how can it be done?
Code: Select all
put "RowStyle" into pRowStyle
put "ALTER TABLE MyItems ADD COLUMN '"&pRowStyle&"'" into tAddColumn
revExecuteSQL the uDatabaseID of this stack ,tAddColumn