错了一句:我想根据以下sql做修改:  update table set A = a , B = b where A = a1 and B = b1 and  C = c and D = d;

解决方案 »

  1.   

    可以在页面里加上<input type = "hidden" name = "A1" value=<%=原值%>
                   <input type = "hidden" name = "B1" value=<%=原值%>
    再string s11 = request.getParameters("A1");   
    string s22 = request.getParameters("B1");s11,s22就是得到的原来的值.
    update table set A = s11 , B = s22 where A = a1 and B = b1 and  C = c and D = d;
      

  2.   

    写错了。再来
    update table set A = s1 , B = s2 where A = s11 and B = s22 and  C = c and D = d;