Cursor cursor = sqliteDatabase.rawQuery("update "
+ DbMetaData.CART_TABLE_NAME + " set " + DbMetaData.PRODUCT_NUM
+ "=" + DbMetaData.PRODUCT_NUM + "+" + num + " where "
+ DbMetaData.ID + "=?", new String[]{id});
cursor.getCount()總是返回0;那麼如何判斷我更新成功?如何判斷android rawQuery更新成功?
你可以發佈整個功能嗎? –