In my application i created a database(before with group field it works fine).Now i want to cretae one more field(called group).I created that field .But showing the following error:
android.database.sqlite.SQLiteException: near "group": syntax error: create table incomexpense(_id integer primary key autoincrement,price text not null,description text not null,quantity text not null,total text not null,category text not null,recurrence text not null,date text not null,group text not null);
My create command:
"create table incomexpense(_id integer primary key autoincrement,"+"price text not null,description text not null,"+"quantity text not null,"+"total text not null,"+"category text not null,"+"recurrence text not null,"+"date text not null,"+"group text not null);";
groupis a keyword so it should not be used while creating a table.