隨筆 - 6  文章 - 129  trackbacks - 0
          <2025年6月>
          25262728293031
          1234567
          891011121314
          15161718192021
          22232425262728
          293012345

          常用鏈接

          留言簿(14)

          隨筆檔案(6)

          文章分類(467)

          文章檔案(423)

          相冊

          收藏夾(18)

          JAVA

          搜索

          •  

          積分與排名

          • 積分 - 827256
          • 排名 - 49

          最新評論

          閱讀排行榜

          評論排行榜

               摘要: --使用 from_unixtime 和 unix_timestamp 將時間列轉(zhuǎn)化成想要的格式
          --然后再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 閱讀(554) | 評論 (0)編輯 收藏
               摘要: 要修改的列由某個虛擬表達式使用  閱讀全文
          posted @ 2015-09-16 14:30 Ke 閱讀(2820) | 評論 (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 閱讀(4463) | 評論 (0)編輯 收藏
               摘要: 十進制與十六進制的轉(zhuǎn)換
          8i以上版本:
          十進制-->十六進制
          select to_char(100,'XX') from dual;
          十六進制-->十進制
          select to_number('7D','XX') from dual;
          其中XX為格式,注意XX的位數(shù)不能小于傳入的參數(shù)。  閱讀全文
          posted @ 2014-07-30 17:35 Ke 閱讀(1441) | 評論 (0)編輯 收藏
               摘要: with CTE as
          (
          -->Begin 一個定位點成員
          select ID, Name,Parent,cast(Name as nvarchar(max)) as TE,
          ROW_NUMBER()over(order by getdate()) as OrderID
          --最關(guān)鍵是上面這個字段,要獲取排序字段,按字符串來排序。
          --其中窗口函數(shù)必須要使用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 閱讀(752) | 評論 (0)編輯 收藏
               摘要: 存儲過程遞歸調(diào)用時 游標(biāo)的使用注意事項 必須把游標(biāo)聲明為局部的,即加上local  閱讀全文
          posted @ 2013-05-14 17:17 Ke 閱讀(879) | 評論 (0)編輯 收藏
               摘要: Openbravo Developers_Guide Notes  閱讀全文
          posted @ 2013-05-03 09:23 Ke 閱讀(819) | 評論 (0)編輯 收藏
               摘要: redhat 9.0,提示Determining IP information for eth0... failed; no link present. Check cable?無法激活網(wǎng)絡(luò)設(shè)備eth0
          我搜的相關(guān)解決方案為:
          到/etc/sysconfig/network-scripts/ifcfg-eth
          /etc/sysconfig/networking/devices/ifcfg-eth 其中表示Ethernet adapter的標(biāo)識數(shù)字,一般為0。當(dāng)為零的時候,就是
          /etc/sysconfig/network-scripts/ifcfg-eth0
          /etc/sysconfig/networking/devices/ifcfg-eth0 這兩個文件中加入

          check_link_down () {
          return 1;
          }   閱讀全文
          posted @ 2013-05-02 16:27 Ke 閱讀(1497) | 評論 (0)編輯 收藏
          僅列出標(biāo)題  
          主站蜘蛛池模板: 凌海市| 安多县| 翁源县| 济南市| 梅州市| 浠水县| 望城县| 开封市| 尼勒克县| 桃园县| 磐安县| 泸溪县| 九龙县| 林周县| 武威市| 石柱| 抚远县| 高碑店市| 嘉定区| 常州市| 昭苏县| 江城| 天门市| 灌云县| 东乡| 射洪县| 石台县| 峨山| 丰城市| 汽车| 常德市| 林口县| 平塘县| 古交市| 安阳市| 桃源县| 柞水县| 和平区| 彰武县| 漳浦县| 封丘县|