Appointment app = new Appointment(int1, int2, long1, str1, str2, str3, b); //str1作为保留字段,在这里如此操作:例如若int1为我们设定的关键字,那么str1 = Integer.toString(int1);
byte[] data = app.toBytes(); rs.setRecord(id, data, 0, data.length); success = true; rs.closeRecordStore(); } catch (Exception e) { }