这可能是一个愚蠢的问题,但我在寻找错误时遇到了麻烦。我在“ TEXT
”附近有一个语法错误,但我不知道在哪里。我很确定我输入正确。
public void onCreate(SQLiteDatabase db){
db.execSQL("CREATE TABLE " + DATABASE_TABLE + " (" +
KEY_ROWID + " INTEGER PRIMARY KEY AUTOINCREMENT, " +
KEY_UNIQUE + " TEXT NOT NULL, " +
KEY_USERNAME + " TEXT NOT NULL, " +
KEY_PASSWORD + " TEXT NOT NULL, " +
KEY_IMAGE + " TEXT NOT NULL, " +
KEY_FULLNAME + " TEXT NOT NULL, " +
KEY_BDAY + " TEXT NOT NULL, " +
KEY_AGE + " TEXT NOT NULL, " +
KEY_SEX + " TEXT NOT NULL, " +
KEY_EMAIL + " TEXT NOT NULL, " +
KEY_WORK + " TEXT NOT NULL, " +
KEY_PROF + " TEXT NOT NULL, " +
KEY_FBUSERNAME + " TEXT NOT NULL, " +
KEY_FBPASSWORD + " TEXT NOT NULL, " +
KEY_YMUSERNAME + " TEXT NOT NULL, " +
KEY_YMPASSWORD + " TEXT NOT NULL, " +
KEY_GMUSERNAME + " TEXT NOT NULL, " +
KEY_GMPASSWORD + " TEXT NOT NULL, " +
KEY_SKUSERNAME + " TEXT NOT NULL, " +
KEY_SKPASSWORD + " TEXT NOT NULL);"
);
}