随笔 - 6  文章 - 129  trackbacks - 0
<2024年3月>
252627282912
3456789
10111213141516
17181920212223
24252627282930
31123456

常用链接

留言簿(14)

随笔档案(6)

文章分类(467)

文章档案(423)

相册

收藏夹(18)

JAVA

搜索

  •  

积分与排名

  • 积分 - 813853
  • 排名 - 49

最新评论

阅读排行榜

评论排行榜

     摘要: --使用 from_unixtime 和 unix_timestamp 将时间列转化成想要的格式
--然后再Insert表,动态指定分区

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 阅读(526) | 评论 (0)编辑 收藏
     摘要: 要修改的列由某个虚拟表达式使用  阅读全文
posted @ 2015-09-16 14:30 Ke 阅读(2740) | 评论 (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 阅读(4427) | 评论 (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 阅读(1408) | 评论 (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 阅读(712) | 评论 (0)编辑 收藏
     摘要: 存储过程递归调用时 游标的使用注意事项 必须把游标声明为局部的,即加上local  阅读全文
posted @ 2013-05-14 17:17 Ke 阅读(845) | 评论 (0)编辑 收藏
     摘要: Openbravo Developers_Guide Notes  阅读全文
posted @ 2013-05-03 09:23 Ke 阅读(781) | 评论 (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 阅读(1457) | 评论 (0)编辑 收藏
仅列出标题