05 2018 档案

摘要:#/bin/sh#取系统时间 vDate=`date +%Y%m%d` echo $vDate echo "成功" 阅读全文
posted @ 2018-05-21 11:38 江清风 阅读(10178) 评论(0) 推荐(1)
摘要:select to_char(7630.376,'fm9999000.00999') from dual --7630.376 okunion all select to_char( 0.376 ,'fm9999000.00999') from dual --000.376union all sel 阅读全文
posted @ 2018-05-18 17:48 江清风 阅读(260) 评论(0) 推荐(0)
摘要:--建表 partition by range (STAT_TIME) ( partition P_MAX values less than (MAXVALUE) ); --历史数据 alter table 按日分区的表名 split partition p_max at (20150101) in 阅读全文
posted @ 2018-05-17 16:49 江清风 阅读(2094) 评论(0) 推荐(0)
摘要:原来的sql要30分钟,翔天加这个之后,8s就出结果了 select /*+ use_hash(g a c) */'1'from tmp_g g ,tmp_a a ,tmp_c c where g.id=a.id and a.id=c.id ; 阅读全文
posted @ 2018-05-08 11:57 江清风 阅读(10760) 评论(0) 推荐(0)