person_query.jsp
//Id在access是自动编号,字段大小是长整型
<a href="person_delete.jsp?id=<%=rs.getString("Id")%>">删除</a>person_delete.jsp
String id = request.getParameter("id");
//调用useBean
person.update("delete from Person where Id='"+id+"'");运行,抛出No data found异常
tomcat控制台显示java.sql.SQLException: [Microsoft][ODBC Microsoft Access 驱动程序] 标准表达式中数据类型不匹配。
用long型也是一样
//Id在access是自动编号,字段大小是长整型
<a href="person_delete.jsp?id=<%=rs.getString("Id")%>">删除</a>person_delete.jsp
String id = request.getParameter("id");
//调用useBean
person.update("delete from Person where Id='"+id+"'");运行,抛出No data found异常
tomcat控制台显示java.sql.SQLException: [Microsoft][ODBC Microsoft Access 驱动程序] 标准表达式中数据类型不匹配。
用long型也是一样
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货