1.DB db=new DB();String sql="update elect set monitor='"+moni+"',partySec='"+party+"',studySec='"+study+"',lifeSec='"+life+"',artSec='"+art+"',publicSec='"+pub+"',sportSec='"+sport+"' where no='"+id+"'";之间输出获得的参数,看是否正确conn=db.getConnection();后输出sql执行语句,看是否语句的值有误3.stmt.executeUpdate(sql);这句sql有问题,参数肯定不是sql ,我记得...
|