摘要: 1、具体用法: RequestDispatcher dispatcher = req.getRequestDispatcher("updateByUserId_001.jsp"); dispatcher.forward(req, resp); updateByUserId_001.jsp是将要跳转到 阅读全文
posted @ 2014-06-22 18:36 我要博客go 阅读(593) 评论(0) 推荐(0)
摘要: select top pageSize * from goods where goodsId not in (select top pageSize*(pageNow-1) goodsId from goods); MySQL不支持top关键字,其替代方案为使用limit关键字,其使用形式为:lim 阅读全文
posted @ 2014-06-22 18:26 我要博客go 阅读(226) 评论(0) 推荐(0)
摘要: 1、在运用Servlet中心控制器接受表单提交上来的数据时,出现“将截断字符串或二进制数据”的错误。经过分析,知道了这个是因为编码的原因,在这个Servlet使用String类的构造方法进行编码转换,将可以解决这个问题,即new String(request.getParameter("userNa 阅读全文
posted @ 2014-06-22 18:25 我要博客go 阅读(543) 评论(0) 推荐(0)
摘要: 1、返回N条记录数 select top n * from <表名> [查询条件] 2、返回总结果集中指定百分比记录数 select top n percent * from <表名> [查询条件] 3、分页查询语句 select top pageSize * from <表名> where [us 阅读全文
posted @ 2014-06-22 17:44 我要博客go 阅读(831) 评论(0) 推荐(0)