这是我尝试添加条目时遇到的错误:
android.database.sqlite.SQLiteExeption:near "TABLELocation":syntax error(code1):,while compiling: CREATE TABLELocation(idInteger PRIMARY KEY AUTOINCREMENT, nameTEXT NOT NULL, detailTEXT NOT NULL
创建表的查询是:
db.execSQL("CREATE TABLE" + DBTable +
"("+ key_rowID + "INTEGER PRIMARY KEY AUTOINCREMENT," +
key_name + "TEXT NOT NULL," + key_detail + "TEXT NOT NULL);");
哪里DBTable = "table_name"
。如何解决问题?