当我删除一行时,ID不会改变,它们仍然会像我没有删除一样,例如,如果我有一个从1到10的表,我删除' 6'它仍然从1到10与1,2,3,4,5,7,8,9,10和#39; - 我怎样才能解决这个问题?
public void deleteTitle(String hour,String munites ,int position )
{
int value=position+1;
SQLiteDatabase db = this.getWritableDatabase();
db.delete(TABLE_NAME, COL2 + " = ? AND " + COL3 + " = ?", new String[] {hour, munites +""});
db.execSQL("DELETE FROM SQLITE_SEQUENCE WHERE NAME = '" + TABLE_NAME + "'");
}