jsp 用sql语句时关于插入日期的问题
代码为:org.apache.jasper.JasperException:ExceptioninJSP:/insertDatabase.jsp:3431:Stringm...
代码为:
org.apache.jasper.JasperException: Exception in JSP: /insertDatabase.jsp:34
31: String mail=request.getParameter("mail");
32:
33: sql="insert into users (username,password,sex,birthday,mail,nature) values ('"+username+"','"+pwd+"','"+sex+"','"+birthday+"','"+mail+"','usual')";
34: st.executeUpdate(sql);
35: %>
36: <script language="javascript">
37: alert("注册成功!");
javax.servlet.ServletException: [Microsoft][ODBC Microsoft Access Driver] 标准表达式中数据类型不匹配。 展开
org.apache.jasper.JasperException: Exception in JSP: /insertDatabase.jsp:34
31: String mail=request.getParameter("mail");
32:
33: sql="insert into users (username,password,sex,birthday,mail,nature) values ('"+username+"','"+pwd+"','"+sex+"','"+birthday+"','"+mail+"','usual')";
34: st.executeUpdate(sql);
35: %>
36: <script language="javascript">
37: alert("注册成功!");
javax.servlet.ServletException: [Microsoft][ODBC Microsoft Access Driver] 标准表达式中数据类型不匹配。 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询