PreparedStatement pstmt=conn.prepareStatement(sql); pstmt.setString(1, "M"); pstmt.setString(2, "19907319999"); pstmt.setInt(3, 17); pstmt.setString(4, "易强"); i=pstmt.executeUpdate(); System.out.print("成功修改了 "+i+" 条记录");