隨筆 - 6  文章 - 129  trackbacks - 0
          <2025年5月>
          27282930123
          45678910
          11121314151617
          18192021222324
          25262728293031
          1234567

          常用鏈接

          留言簿(14)

          隨筆檔案(6)

          文章分類(467)

          文章檔案(423)

          相冊

          收藏夾(18)

          JAVA

          搜索

          •  

          積分與排名

          • 積分 - 825129
          • 排名 - 49

          最新評論

          閱讀排行榜

          評論排行榜

               摘要: --使用 from_unixtime 和 unix_timestamp 將時間列轉化成想要的格式
          --然后再Insert表,動態(tài)指定分區(qū)

          insert overwrite table partition_user_table partition (dt) select id, account, name, create_time, from_unixtime(unix_timestamp(create_time,'yyyy/mm/dd'),'yyyymmdd') as dt from external_user_table;
            閱讀全文
          posted @ 2018-04-02 16:47 Ke 閱讀(546) | 評論 (0)編輯 收藏
               摘要: 要修改的列由某個虛擬表達式使用  閱讀全文
          posted @ 2015-09-16 14:30 Ke 閱讀(2812) | 評論 (0)編輯 收藏
               摘要:
          方法一:

          1 var data, json;
          2 json = '[{"id":"年計劃","text":"年計劃","selected":true}]';
          3 data = $.parseJSON(json);
          4 $("#rwlb").combobox("loadData", data);
          方法二:

          1 var data,json;
          2 data = [];
          3 data.push({ "text": "測試", "id": 100 });
          4 $("#rwlb").combobox("loadData", data);
            閱讀全文
          posted @ 2014-09-20 15:59 Ke 閱讀(4456) | 評論 (0)編輯 收藏
               摘要: 十進制與十六進制的轉換
          8i以上版本:
          十進制-->十六進制
          select to_char(100,'XX') from dual;
          十六進制-->十進制
          select to_number('7D','XX') from dual;
          其中XX為格式,注意XX的位數不能小于傳入的參數。  閱讀全文
          posted @ 2014-07-30 17:35 Ke 閱讀(1434) | 評論 (0)編輯 收藏
               摘要: with CTE as
          (
          -->Begin 一個定位點成員
          select ID, Name,Parent,cast(Name as nvarchar(max)) as TE,
          ROW_NUMBER()over(order by getdate()) as OrderID
          --最關鍵是上面這個字段,要獲取排序字段,按字符串來排序。
          --其中窗口函數必須要使用order by,但是不能用整型,那就用時間吧
          from Tree where Parent is null
          -->End
          union all
          -->Begin一個遞歸成員
          select Tree.ID, Tree.Name,Tree.Parent,cast(replicate(' ',len(CTE.TE))+'|_'+Tree.name as nvarchar(MAX)) as TE, <  閱讀全文
          posted @ 2014-07-17 14:46 Ke 閱讀(742) | 評論 (0)編輯 收藏
               摘要: 存儲過程遞歸調用時 游標的使用注意事項 必須把游標聲明為局部的,即加上local  閱讀全文
          posted @ 2013-05-14 17:17 Ke 閱讀(871) | 評論 (0)編輯 收藏
               摘要: Openbravo Developers_Guide Notes  閱讀全文
          posted @ 2013-05-03 09:23 Ke 閱讀(811) | 評論 (0)編輯 收藏
               摘要: redhat 9.0,提示Determining IP information for eth0... failed; no link present. Check cable?無法激活網絡設備eth0
          我搜的相關解決方案為:
          到/etc/sysconfig/network-scripts/ifcfg-eth
          /etc/sysconfig/networking/devices/ifcfg-eth 其中表示Ethernet adapter的標識數字,一般為0。當為零的時候,就是
          /etc/sysconfig/network-scripts/ifcfg-eth0
          /etc/sysconfig/networking/devices/ifcfg-eth0 這兩個文件中加入

          check_link_down () {
          return 1;
          }   閱讀全文
          posted @ 2013-05-02 16:27 Ke 閱讀(1490) | 評論 (0)編輯 收藏
          僅列出標題  
          主站蜘蛛池模板: 德安县| 疏勒县| 常山县| 谷城县| 天台县| 府谷县| 信丰县| 平塘县| 固安县| 汝城县| 称多县| 临海市| 新乡市| 昭通市| 商洛市| 东乌珠穆沁旗| 景宁| 永年县| 宁城县| 土默特右旗| 扬州市| 昌邑市| 福贡县| 象州县| 澄江县| 石屏县| 石台县| 双城市| 洱源县| 浦江县| 博客| 沐川县| 手游| 石门县| 湟中县| 民县| 辉县市| 达日县| 昔阳县| 新昌县| 涟源市|