可以在页面里加上<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;
写错了。再来 update table set A = s1 , B = s2 where A = s11 and B = s22 and C = c and D = d;
<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;
update table set A = s1 , B = s2 where A = s11 and B = s22 and C = c and D = d;