I am creating database for an application ,Here is my code giving me error no such table found where is the problem please help
protected static final String player = ("CREATE TABLE " + table_player
+ " (" + player_id + " INTEGER PRIMARY KEY AUTOINCREMENT, "
+ player_name + " TEXT, " + player_dob + "INTEGER" + player_gender + " TEXT);");
in oncreatdatabase()
db.execSQL(player);
insert method:
public long insert_Place( )//, String _Placealti)
{
try
{
SQLiteDatabase db= this.getWritableDatabase();
ContentValues contentValues = new ContentValues();
contentValues.put(player_name, "name");
contentValues.put(player_dob, "123");
contentValues.put(player_gender, "male");
return db.insert(table_player, null, contentValues);
}
catch(Exception ex)
{
Log.d("Insert: insert_Place",ex.toString());
}
return 0;
}