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

          常用鏈接

          留言簿(14)

          隨筆檔案(6)

          文章分類(467)

          文章檔案(423)

          相冊

          收藏夾(18)

          JAVA

          搜索

          •  

          積分與排名

          • 積分 - 827204
          • 排名 - 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)編輯 收藏
               摘要: 要修改的列由某個虛擬表達(dá)式使用  閱讀全文
          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)編輯 收藏
               摘要: 十進(jìn)制與十六進(jìn)制的轉(zhuǎn)換
          8i以上版本:
          十進(jìn)制-->十六進(jìn)制
          select to_char(100,'XX') from dual;
          十六進(jìn)制-->十進(jìn)制
          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)編輯 收藏
          列出全部內(nèi)容  
          主站蜘蛛池模板: 璧山县| 凌海市| 兴山县| 洛南县| 哈尔滨市| 德州市| 甘谷县| 教育| 同江市| 达孜县| 黑河市| 乌兰察布市| 海伦市| 锦州市| 田东县| 庄浪县| 镇沅| 隆尧县| 延川县| 子洲县| 疏附县| 安多县| 黄山市| 乐都县| 晴隆县| 青浦区| 库车县| 永顺县| 游戏| 屏山县| 台前县| 城固县| 四平市| 宁阳县| 房山区| 阳曲县| 德州市| 天门市| 兴安县| 崇州市| 郁南县|