/* update */ public static int update( DatabaseHelper databaseHelper, String columnvalue, String originalvalue, String column, String value) { RuntimeExceptionDao<system_messageVo, Integer> system_messageDao = databaseHelper.getSystem_messageDao(); UpdateBuilder<system_messageVo, Integer> updateBuilder = system_messageDao.updateBuilder(); try { // 判斷式 哪一欄 = 值 updateBuilder.where().eq(columnvalue, originalvalue); // update the value of your field(s) updateBuilder.updateColumnValue(column, value); return updateBuilder.update(); } catch (Exception e) { e.printStackTrace(); } return 0; }