Android,SQLite更新,获取空值,但不是´;T

Android,SQLite更新,获取空值,但不是´;T,android,sqlite,Android,Sqlite,我一直在尝试使用这个更新,但是我得到了一个提示,说值是空的:/但是根据android studio,它们确实存在 守则: int tempDay = tempCursor.getColumnIndex("count"); int tempDayTotal = tempDay + entry.getValue(); ContentValues cv = new ContentValues

我一直在尝试使用这个更新,但是我得到了一个提示,说值是空的:/但是根据android studio,它们确实存在

守则:

int tempDay = tempCursor.getColumnIndex("count");
                            int tempDayTotal = tempDay + entry.getValue();
                            ContentValues cv = new ContentValues();
                            cv.put("count", Integer.toString(tempDayTotal));
                            cv.put("dayActive", Integer.toString(1));
                            GVars.dBase.conn.update("clientProduct", cv, "clientID = ? AND productID = ?", new String[]{Integer.toString(tempIDClient),Integer.toString(entry.getKey().getId())});
这就是我告诉android studio进入此功能时得到的结果:


刚刚将count的名称改为countDay,并修复了所有问题