posts - 165, comments - 198, trackbacks - 0, articles - 1
            BlogJava :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理

          日歷

          <2008年7月>
          293012345
          6789101112
          13141516171819
          20212223242526
          272829303112
          3456789

          公告

          由于時間問題,
          blog上一些表達都不太好。

          在此我盡量把我參考的原文給大家,
          與大家學習。^_^
          最近在維護www.aygfsteel.com\Skynet 腳本中
          有什么技術問題不會,
          我很愿意和大家討論!
          多交流快成長
          liukaiyi@gmail.com


          文章檔案

          相冊

          搜索

          •  

          最新評論

          一句話 技術 (大家來接龍)

          Posted on 2008-07-28 11:02 G_G 閱讀(1276) 評論(1)  編輯  收藏 所屬分類: javaGeneral
          ? 那位來開個頭吧

          正則匹配 html標題

          ??? <[hH]([1-9])>.*?</[hH]\1>

          數據庫查詢執行順序:
          ??? from->where->group by->聚集函數->having->order by
          ??? table level(id,name)
          ??? select count(*) as cu from level where id>1 group by name desc? having cu>=1 order by id ;


          火狐 xpath 取 document dom 值:
          ??? id('table8')/tbody/tr[6]/td/@valign



          數據庫有為空列排放位置:
          ??? 1.? select name,
          ??? ??? ??? ??? ?case
          ??? ??? ??? ??? ???? ??? when name is null then 0
          ??? ??? ??? ??? ???? ??? else? 1?
          ??? ??? ??? ??? ?end
          ??? ??? ??? ??? ??? as is_null
          ???????? from level
          ???????? order by is_null? ;
          ??? 2.select name from level where name is null
          ?????? union
          ????? select name from level where name is not null ;

          數據庫報表表鏈為空項替換為0
          table a (id); values - > 1 ,2 ,3
          table b (id,num); -> (1,15),(1,5)
          查詢結果為 要為
          1??? 20
          2??? 0
          3??? 0

          select?a.id?as?id,
          ????????
          sum(
          ????????????
          case
          ????????????????
          when?b.num?is??null?then?0
          ????????????????
          else?b.num
          ?????????????
          end
          ????????????)?
          as?num
          from?a?left?join?b?on?a.id=b.id?
          group?by?id?;


          評論

          # re: 一句話 技術 (大家來接龍)  回復  更多評論   

          2008-07-28 11:33 by Robin's Java World
          這樣的帖子應該發到論壇里,不該放在Blog中。
          主站蜘蛛池模板: 洛扎县| 油尖旺区| 禹城市| 大悟县| 绥中县| 区。| 喀喇| 大足县| 应用必备| 神农架林区| 洛阳市| 阿克陶县| 江油市| 古浪县| 尚义县| 象山县| 利辛县| 临海市| 华宁县| 古丈县| 崇信县| 阳山县| 肇东市| 阿坝| 丘北县| 从江县| 莱芜市| 泰兴市| 隆昌县| 桦川县| 焉耆| 阿图什市| 九寨沟县| 海原县| 滦平县| 玉环县| 汶川县| 丹东市| 海门市| 诏安县| 嵊州市|