06 2014 档案
摘要:1、格式 布尔型表达式?a:b,例子:boolean c;int a=1,b=2;c=a>b?10:15,这样子最终返回的结果是15
阅读全文
摘要:1、具体用法: RequestDispatcher dispatcher = req.getRequestDispatcher("updateByUserId_001.jsp"); dispatcher.forward(req, resp); updateByUserId_001.jsp是将要跳转到
阅读全文
摘要:select top pageSize * from goods where goodsId not in (select top pageSize*(pageNow-1) goodsId from goods); MySQL不支持top关键字,其替代方案为使用limit关键字,其使用形式为:lim
阅读全文
摘要:1、在运用Servlet中心控制器接受表单提交上来的数据时,出现“将截断字符串或二进制数据”的错误。经过分析,知道了这个是因为编码的原因,在这个Servlet使用String类的构造方法进行编码转换,将可以解决这个问题,即new String(request.getParameter("userNa
阅读全文
摘要:1、返回N条记录数 select top n * from <表名> [查询条件] 2、返回总结果集中指定百分比记录数 select top n percent * from <表名> [查询条件] 3、分页查询语句 select top pageSize * from <表名> where [us
阅读全文
摘要:分析:@P0指的是第一个参数附近有错误;为'@P1'指的是第二个参数附近错误语法有错误。
阅读全文
摘要:String sql=null; 1、sql="update 表名 set <列名>=<表达式> [where=<表达式>]" 2、sql="delete from 表名 [where=<表达式>]" 3、sql="insert into 表名 [column_list] values(date_v
阅读全文
摘要:分析原因: 1.doPost()和getPost()两个方法继承了父类,造成出错。
阅读全文
摘要:复选框: <input type="checkbox" name="favor" value="唱歌"/>唱歌 <input type="checkbox" name="favor" value="游戏"/>游戏 <input type="checkbox" name="favor" value="
阅读全文
摘要:JDK下载:www.oracle.com;SDK下载:www.android.developer.com;eclipse下载:www.eclipse.org;
阅读全文

浙公网安备 33010602011771号