解决方案 »

  1.   

    我觉得sql语句有错的问题大一些
      

  2.   

    String sql="update books set stock=stock-"+count+"where bid="+bid;
    这行又问题 ,改成String sql="update books set stock=stock-"+count+"  where bid="+bid;
      

  3.   

    String sql="update books set stock=stock-"+count+"where bid="+bid;sql语句里面涉及到拼接字符串的时候要用单引号引起来。
    String sql="update books set stock=‘stock-"+count+" ’ where bid=‘ "+bid+“,”;
      

  4.   

    arg1.setContentType("text/html;charset=utf-8");  给response 返回的设置下编码