posts - 262,  comments - 221,  trackbacks - 0
Oracle 开发
【原】Oracle开发专题之:时间运算2(日期截取及四舍五入)      摘要: Oracle日期运算2(日期截取及四舍五入)  阅读全文
posted @ 2008-06-30 14:47 Paul Lin 阅读(3713) | 评论 (0)  编辑
【原】Oracle开发专题之:时间运算      摘要: 1.Oracle的日期函数
2.日期加减
3.月份加减
4.年份加减
5.求每月的最后一天
6.求每月的第一天
7.求下一个星期几  阅读全文
posted @ 2008-06-30 10:23 Paul Lin 阅读(8670) | 评论 (11)  编辑
【原】Oracle开发专题之:分析函数总结      摘要: Oracle分析函数的应用:
1.统计
2.排列
3.求分组中的最大值/最小值
4.查找分组中的首记录/末记录
5.比较相邻的记录  阅读全文
posted @ 2008-06-29 17:07 Paul Lin 阅读(2842) | 评论 (1)  编辑
【原】Oracle开发专题之:报表函数      摘要: 1.报表函数简介
2.RATIO_TO_REPORT函数  阅读全文
posted @ 2008-06-29 12:02 Paul Lin 阅读(5772) | 评论 (3)  编辑
【原】Oracle开发专题之:窗口函数      摘要: 1.窗口函数简介
2.窗口函数示例-全统计
3.窗口函数进阶-滚动统计(累积/均值)
4.窗口函数进阶-根据时间范围统计
5.窗口函数进阶-first_value/last_value
6.窗口函数进阶-比较相邻记录  阅读全文
posted @ 2008-06-28 16:34 Paul Lin 阅读(9656) | 评论 (6)  编辑
【原】Oracle应用专题之:分析函数3(Top/Bottom N、First/Last、NTile)      摘要: 1.带空值的排列
2.Top/Bottom N查询
3.First/Last排名查询
4.按层次查询  阅读全文
posted @ 2008-06-27 09:44 Paul Lin 阅读(6574) | 评论 (1)  编辑
【原】Oracle开发专题之:分析函数2(Rank, Dense_rank, row_number)      摘要: 1.使用rownum为记录排名
2.使用分析函数来为记录排名
3.使用分析函数为记录进行分组排名  阅读全文
posted @ 2008-06-26 15:41 Paul Lin 阅读(8140) | 评论 (0)  编辑
【原】Oracle开发专题之:分析函数(OVER)      摘要: 1.Oracle分析函数简介
2. Oracle分析函数简单实例
3.分析函数OVER解析  阅读全文
posted @ 2008-06-25 14:02 Paul Lin 阅读(15146) | 评论 (8)  编辑
【原】Oracle开发专题之:删除重复记录      摘要: Oracle中删除重复记录  阅读全文
posted @ 2008-06-18 11:04 Paul Lin 阅读(1641) | 评论 (0)  编辑
【原】Oracle开发专题之:行列转换      摘要: Oracle中行列转换的实现方式

一、使用decode函数进行“行转列”
二、使用insert...select进行“列转行”
三、利用rownum关键字进行行列转换  阅读全文
posted @ 2008-06-15 22:17 Paul Lin 阅读(6140) | 评论 (2)  编辑
【原】Oracle开发专题之:级联查询(Hierarchical Queries) 进阶应用:伪列Level      摘要: 使用Oracle的伪列完成复杂的级联操作:

1.使用伪列Level显示表中节点的层次关系
2.统计表中节点的层数
3.统计表中各个层次的节点数量
4.查找表中各个层次的节点信息
5.在Start with中使用子查询
6.判断节点和节点之间是否具有层次关系
7.删除级联表中的子树  阅读全文
posted @ 2008-06-12 17:45 Paul Lin 阅读(3936) | 评论 (0)  编辑
【原】Oracle开发专题之:级联查询(Hierarchical Queries)      摘要: 使用oracle聚集函数start with... connect by进行级联查询  阅读全文
posted @ 2008-06-11 17:55 Paul Lin 阅读(4315) | 评论 (6)  编辑
【原】Oracle开发专题之:随机查询      摘要: Oracle下几种随机查询方式的效率比较  阅读全文
posted @ 2008-06-09 17:41 Paul Lin 阅读(1932) | 评论 (3)  编辑

<2024年3月>
252627282912
3456789
10111213141516
17181920212223
24252627282930
31123456

常用链接

留言簿(21)

随笔分类

随笔档案

BlogJava热点博客

好友博客

搜索

  •  

最新评论

阅读排行榜

评论排行榜