TomDuncan Active Member Licensed User Longtime User Sep 16, 2015 #1 Hi, I need a way of checking if a field exists in a table, then if not add it. Tom
Erel B4X founder Staff member Licensed User Longtime User Sep 16, 2015 #2 You can use PRAGMA table_info: http://www.sqlite.org/pragma.html#pragma_table_info And then ALTER TABLE: http://www.sqlite.org/lang_altertable.html Upvote 0
You can use PRAGMA table_info: http://www.sqlite.org/pragma.html#pragma_table_info And then ALTER TABLE: http://www.sqlite.org/lang_altertable.html
TomDuncan Active Member Licensed User Longtime User Sep 16, 2015 #3 Just Had a look at Rob's Howto on Sqlite. "List Database Tableinfo" Will modify that and then use the Alter table as you suggest. Tom Upvote 0
Just Had a look at Rob's Howto on Sqlite. "List Database Tableinfo" Will modify that and then use the Alter table as you suggest. Tom