just like the title goes, I'm unable to key the email address into SQLite databases. The error is as followed:
02-01 09:49:52.300: I/SqliteDatabaseCpp(16157): sqlite returned: error code = 1, msg = near "@gmail": syntax error, db=/data/data/com.proj.db/databases/FormDetails
There is nothing wrong in the creating of database it's only recently that I add into the email column then this error comes out. Is it because the "@" sign cannot be keyed into the database?
My code for the table:
String insertNewFormDetails = "create table if not exists " + TABLE_NAME + " ( " + BaseColumns._ID + " integer primary key autoincrement, "
+ NAME + " text not null, "
+ SCHOOL + " text not null, "
+ CURRENTDATE + " text not null, "
+ FORMTYPE + " text not null, "
+ EMAIL + " text not null);";
db.execSQL(insertNewFormDetails);
insertNewFormDetailsand each of the String variables you use to build it?@character.