I have an update syntax and when I call it is not doing what it suppose to do. I don't get an error it just doesnt update the table itself. I have other SQL syntax that I call like insert, select, and delete and all are working. I use the similar format. I am not sure if update has a different way compare to the other syntax. I been liking the way that a SQL syntax is stored in a String variable because it gives me the sense how it looks in the database when doing such syntax. Could someone please help me with this?
//UPDATE new SETTING into duel setting Table using sql statement
public void addnewsettingDUELSETTING(){
String SQLADD2DUELSETTING = "UPDATE " +YAOMySQLiteHelper.TABLE_DUEL_SETTING +
" SET " + YAOMySQLiteHelper.COLUMNds_ID + " = '" + "1" + "' ,"+
YAOMySQLiteHelper.COLUMNds_ME + " = '"+ DuelSettingMenu.xsp1 + "' , " +
YAOMySQLiteHelper.COLUMNds_OPPONENT + " = '"+ DuelSettingMenu.xsp2 + "' , " +
YAOMySQLiteHelper.COLUMNds_LIFE_POINT + " = '"+ DuelSettingMenu.xsp3 + "' , " +
YAOMySQLiteHelper.COLUMNds_GAME_TIMER + " = '"+ DuelSettingMenu.xsp4 + "' , " +
YAOMySQLiteHelper.COLUMNds_CALCULATOR_LAYOUT + " = '"+ DuelSettingMenu.xsp5 + "'" +
" WHERE " +YAOMySQLiteHelper.COLUMNds_ID + " = " + "'1'" ;
database.execSQL(SQLADD2DUELSETTING);
}