救救孩子吧很简单的sql语句问题,但是我不太会!!java.sql.SQLException: [Microsoft][ODBC Microsoft Acces
if (action.equals("xiugai")) {
String username=new String(request.getParameter("username").getBytes("iso-8859-1"),"utf-8");
String newpassword=new String(request.getParameter("newpassword").getBytes("iso-8859-1"),"utf-8");
Sq1="UPDATE user SET [password]=newpassword where [username]=username";
pst = conn.prepareStatement(Sq1);
rs = pst.executeQuery();
out.print(resultSetToJson(rs));
rs.close();
return;
}
就是简单的改密码,大佬帮我瞧瞧