I'm trying to insert values into table
public class DatabaseHandler extends SQLiteOpenHelper { private final static String INSERT_INTO_COUNTRIES = "INSERT INTO " + TABLE_COUNTRIES + " VALUES"; @Override public void onCreate(SQLiteDatabase db) { final String countries = "('1','Andorra','93','flag_andorra','AND'), ('2','Austria','43','flag_flag_austria','AUT')"; String query = INSERT_INTO_COUNTRIES + countries + ";"; db.execSQL(query); } } And get the following error:
android.database.sqlite.SQLiteException: near ",": syntax error: , while compiling: INSERT INTO cardberry_countries VALUES('1','Andorra','93','flag_andorra','AND'),('2','Austria','43','flag_flag_austria','AUT'); Error occurs on Android 4.0.4 HTC Sense 3.6. I tested on multiple devices runnin on Android 4.2 and higher and it works fine.
Does anybody know what's the problem?