Statement  stat=conn.createStatement();
   String errorcode="";
   String strSql=new String();
   String id=request.getParameter("id");
   String content=request.getParameter("content");
   byte b[]=content.getBytes("ISO-8859-1");
   content=new String(b);
   out.print("<td width=\"410\">"+content+"</td>");
 try{
    strSql="update Liuyan set content="+"'"+"+content+"+"'"+" where serial_no="+id;
stat.executeUpdate(strSql);
out.println("<BR><font size=\"+2\" color=\"red\">祝贺,留言修改成功!</font>");
}catch(Exception e){
     errorcode=e.toString();
 out.println("<BR>DEBUG:"+errorcode);
要实现数据的更新,更新后,数据可以打印出来,但无法存入数据库?是什么原因?