• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
御手洗红豆
博客园    首页    新随笔    联系   管理    订阅  订阅
2018年6月8日
eclipse 忽略 target 设置
摘要: 从网上当了好多资料,汇总一下分为三种方法,全部执行后target仍存在但是不再影响项目了 方法一: 在 Windows -> Preferences -> Team -> Ignored Resources里点 “Add Pattern”, 然后把 target 添加进去就可以了,以后同步这个工作空 阅读全文
posted @ 2018-06-08 10:15 巡回の真夜喵 阅读(4365) 评论(1) 推荐(0)
eclipse去掉XML报错信息
摘要: 在 windows => preferences => validation => Disable All 执行后xml仍然报错可以用以下方法去除xml报错信息 windows => preferences => xml => xml files => validation => validatin 阅读全文
posted @ 2018-06-08 10:07 巡回の真夜喵 阅读(3360) 评论(0) 推荐(0)
2018年5月10日
SQL语句求和操作
摘要: select sum(price),count(id) from order ; 查询得到price列的和,以及记录数。 该SQL中sum(price)是求列price的总和, count(id)是根据查询到的ID数量得到的数据总行数。 count(id)要比count(*)查询速度更快更节约资源 阅读全文
posted @ 2018-05-10 10:32 巡回の真夜喵 阅读(11010) 评论(0) 推荐(0)
2017年6月14日
一个搜索框实现多种属性搜索(二)
摘要: 使用关键词进行替代搜索 String urlParas = getPara("urlParas","");String indexes = getPara("indexes","");if(indexes.equals("")&&!urlParas.equals("")){ try { urlPar 阅读全文
posted @ 2017-06-14 16:28 巡回の真夜喵 阅读(282) 评论(0) 推荐(0)
改变表内多条数据的同一属性
摘要: 两种方法 方法一:循环 String sql = "select * from A where bId=" + B.getInt("id"); List<A> AupList = A.dao.find(sql); for(int i = 0; i < AupList.size(); i++){ Au 阅读全文
posted @ 2017-06-14 16:02 巡回の真夜喵 阅读(172) 评论(0) 推荐(0)
2017年5月25日
多表查询去重复
摘要: 感谢一位朋友的技术支持 示例: select DISTINCT A.* from problem A LEFT JOIN student B on B.studentNo=A.studentNo where A.isDel=0 知识点:在select 后面加“DISTINCT ”去重复 阅读全文
posted @ 2017-05-25 15:25 巡回の真夜喵 阅读(174) 评论(0) 推荐(0)
2017年5月19日
多表联查统计数字
摘要: SQL语句: select A.*, B.count1, C.count2, D.count3 from task A left join (select count(id) count1, askId from task_upload group by askId) B on A.id=B.ask 阅读全文
posted @ 2017-05-19 15:46 巡回の真夜喵 阅读(204) 评论(0) 推荐(0)
2017年2月24日
在null情况下判断
摘要: ${aaa.name1!aaa.name2} 释:如果aaa的name1等于Null则显示name2 两个name中总有一个为Null,可以用此句判断显示哪个。 阅读全文
posted @ 2017-02-24 16:44 巡回の真夜喵 阅读(133) 评论(0) 推荐(0)
2017年2月3日
一个搜索框实现同一表内多个属性的搜索
摘要: //查询条件 String urlParas = getPara("urlParas", ""); String name = getPara("name", ""); if(name.equals("") && !urlParas.equals("")){ try { urlParas = URL 阅读全文
posted @ 2017-02-03 15:14 巡回の真夜喵 阅读(368) 评论(0) 推荐(0)
2017年1月13日
分页固定显示信息数
摘要: 方法: 只需在下面两处修改就可以。下面示范每页显示四条信息的修改 原文: // 计算总页数,不能整除的进1 totalPage = BigDecimal.valueOf(totalRow).divide(SystemStateConstant.PAGENUM, BigDecimal.ROUND_UP 阅读全文
posted @ 2017-01-13 09:52 巡回の真夜喵 阅读(142) 评论(0) 推荐(0)
下一页
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3