System.out.println("请依次输入要修改记录的id,以及要修改的属性还有属性值,字段中间以空格隔开");
Scanner sc = new Scanner(System.in);
String id = sc.next();
String fie = sc.next();
String value = sc.next();
String sq = "update Person set " + fie + "=" + value + "where id="
+ id;
st.executeUpdate(sq);
Scanner sc = new Scanner(System.in);
String id = sc.next();
String fie = sc.next();
String value = sc.next();
String sq = "update Person set " + fie + "=" + value + "where id="
+ id;
st.executeUpdate(sq);