09 2012 档案

Oracle 查询,返回记录集,不是用游标,不用创建临时表----完整版
摘要:--首先自定义一种名为:row_month_report类型typecreate or replace type row_month_report as object(m_month varchar2(30),m_SluiceName varchar2(30),m_OneSluiceCount number,m_TwoSluiceCount number,m_OneUpEmptyCount number,m_OneDownemptyCount number,m_TwoUpemptyCount number,m_TwoDownemptyCount number,----------------- 阅读全文

posted @ 2012-09-28 14:34 呼嘎嘎 阅读(528) 评论(0) 推荐(0)

Oracle 查询,返回记录集,不是用游标,不用创建临时表
摘要:1.首先要创建一个类型集合;create or replace type row_month_report as object---声明一种类型(m_month varchar2(30),m_SluiceName varchar2(30),m_OneSluiceCount number,m_TwoSluiceCount number,m_OneUpEmptyCount number,m_OneDownemptyCount number,m_TwoUpemptyCount number,m_TwoDownemptyCount number,------------------------这是写要 阅读全文

posted @ 2012-09-28 14:23 呼嘎嘎 阅读(1114) 评论(0) 推荐(0)

Oracle 查询重复记录的
摘要:列子:Select name,num from test where rowid!=(select max(rowid) from test b where b.names=test.names andb.num=test.num);----------------------------------------- 速度优化,前一语句比后一语句的速度快几十倍select names,dates from test,bwhere test.names = b.names(+) and b.names is null and b.dates > date('2003-01-01 阅读全文

posted @ 2012-09-26 16:05 呼嘎嘎 阅读(158) 评论(0) 推荐(0)

导航