0

"EXISTS": syntax error (code 1):, while compiling: ALTER TABLE IF EXISTS CW_Elem ADD COLUMN Type TEXT;

database.execSQL("ALTER TABLE IF EXISTS " + groups + "_" + title + " ADD COLUMN " + str + " TEXT;");

How then to check the presence of the table and if it is to execute the request? Please help!

RealSR
  • 1
  • 1

1 Answers1

0

Look at the syntax diagrams for SQLITE. Try alter table

andy mango
  • 1,526
  • 1
  • 8
  • 13