please help me i have a problem with my database .
here is my code
private static final String DB_TABLE = "create table personn (personId integer primary key autoincrement, "+ "personName text not null, personAge text not null, "+ " personName text not null, " + " photoId text not null);";
and + this :
@Override
public void onCreate(SQLiteDatabase db) {
db.execSQL(DB_TABLE);
}
but while i want to insert or select th android gives me error :
Caused by: android.database.sqlite.SQLiteException: no such table: persons (code 1): , while compiling: SELECT personName, photoId, personAge FROM persons