代码:Connection conn =DBHelper.getConnection(); String sql = "update userinfo set balance=?"+"where id=?"; PreparedStatement ps = (PreparedStatement) conn.prepareStatement(sql); ps.setDouble(1, balance); ps.setInt(2, id); ps.executeUpdate(sql);
添加回答
举报
0/150
提交
取消