<?xml version="1.0" encoding="gbk"?>
<rss version="2.0">
  <channel>
    <title>ITPUB论坛 - Oracle开发</title>
    <link>http://www.itpub.net/forumdisplay.php?fid=3</link>
    <description>Latest 40 threads of Oracle开发</description>
    <copyright>Copyright(C) ITPUB论坛</copyright>
    <generator>Discuz! Board by Comsenz Inc.</generator>
    <lastBuildDate>Sun, 21 Mar 2010 14:45:02 +0000</lastBuildDate>
    <ttl>60</ttl>
    <image>
      <url>http://www.itpub.net/images/logo.gif</url>
      <title>ITPUB论坛</title>
      <link>http://www.itpub.net/</link>
    </image>
    <item>
      <title>oracle 11gr2 jdbc 驱动</title>
      <link>http://www.itpub.net/viewthread.php?tid=1281712</link>
      <description><![CDATA[有用Fine*Report的兄弟吗?哪里找到JDBC驱动,如何连接到Oracle 11gr2的数据库

]]></description>
      <category>Oracle开发</category>
      <author>hotsql</author>
      <pubDate>Sun, 21 Mar 2010 13:17:14 +0000</pubDate>
    </item>
    <item>
      <title>像这种情况，如何启动调试？</title>
      <link>http://www.itpub.net/viewthread.php?tid=1281711</link>
      <description><![CDATA[上层应用调用过程包报错，但是自己在PLSQL Developer中单独调试这个过程包又没有问题，最后觉得是传递的参数的问题，但是参数太多，直接把参数填入PLSQL Developer中太麻烦，怎么搞可以达到下面的效果:一个过程包只要一被调用的时,PLSQL Developer就能扑捉到这个调用，然 ...]]></description>
      <category>Oracle开发</category>
      <author>haday</author>
      <pubDate>Sun, 21 Mar 2010 12:55:42 +0000</pubDate>
    </item>
    <item>
      <title>【求助】一个很棘手的sql统计问题，大家帮帮忙</title>
      <link>http://www.itpub.net/viewthread.php?tid=1281703</link>
      <description><![CDATA[我在数据库中一个列数据，要从这列数据中选择出来只要包含有abcde这五个字母中三个以上的字母，我就认为是对的，将其挑选出来，字母的顺序不固定。
比如：abdc，abcde,bcd,dea,bed这些我都认为是对的。
但是如果是abjk这样的数据不认为是对的。]]></description>
      <category>Oracle开发</category>
      <author>keaicw</author>
      <pubDate>Sun, 21 Mar 2010 12:22:27 +0000</pubDate>
    </item>
    <item>
      <title>一个索引的小问题，请解个惑</title>
      <link>http://www.itpub.net/viewthread.php?tid=1281689</link>
      <description><![CDATA[select iid from table1;

没有where条件

iid是个索引，俺理应该直接读取索引，可是执行计划是全表扫描

select iid from table1 where iid &gt; 0; 这样执行计划是变成full index scan了，可是我不需要加条件

请问怎么在不加条件的情况下直接读取索引？]]></description>
      <category>Oracle开发</category>
      <author>frogshero</author>
      <pubDate>Sun, 21 Mar 2010 10:40:30 +0000</pubDate>
    </item>
    <item>
      <title>这几种Insert有什么区别？</title>
      <link>http://www.itpub.net/viewthread.php?tid=1281678</link>
      <description><![CDATA[这几种Insert有什么区别？

1  pivoting Insert
2  unconditional insert
3  conditional all insert
4  conditional first insert

在什么情况下会使用该类型的Insert ？？]]></description>
      <category>Oracle开发</category>
      <author>mylajitong</author>
      <pubDate>Sun, 21 Mar 2010 09:02:23 +0000</pubDate>
    </item>
    <item>
      <title>符合什么样的条件才是相关子查询？（也就说我想找个判断方法）</title>
      <link>http://www.itpub.net/viewthread.php?tid=1281677</link>
      <description><![CDATA[我似乎还是停留在凭感觉的阶段，只能就事论事一个一个看。

有没有谁做过总结？

有没有什么比较好的判断方法？ 可以比较快速准确地区分关联子查询。]]></description>
      <category>Oracle开发</category>
      <author>mylajitong</author>
      <pubDate>Sun, 21 Mar 2010 09:00:07 +0000</pubDate>
    </item>
    <item>
      <title>请高手指点“按小时分组的SQL语句如何写”</title>
      <link>http://www.itpub.net/viewthread.php?tid=1281672</link>
      <description><![CDATA[最近做项目碰到一个难题（自己是菜鸟，对别人不一定是难题），具体情况如下：
有二个数据表，表头如下
表1：FlowData
MeterID     UTime                                  Value     (表头)
Q_00001   2007-01-01  00：00：00     90       （数据）
Q_00001   20 ...]]></description>
      <category>Oracle开发</category>
      <author>jiandan0315</author>
      <pubDate>Sun, 21 Mar 2010 08:26:13 +0000</pubDate>
    </item>
    <item>
      <title>这种方式事务一致性有弊端吗？</title>
      <link>http://www.itpub.net/viewthread.php?tid=1281668</link>
      <description><![CDATA[经常遇到在一个表删除一个记录，而同时更新另一个记录相关信息，例如

delete b where b.id=..
insert into b_log value (...)
commit;

这样在同一事务中保持一致性，这种方式会有什么弊端吗，或者实现上面的功能还有其他更好的方式吗？]]></description>
      <category>Oracle开发</category>
      <author>weifenghq</author>
      <pubDate>Sun, 21 Mar 2010 07:55:00 +0000</pubDate>
    </item>
    <item>
      <title>遇到一个FUNCTION上的奇怪问题，传入参数不能跟DBLINK同时使用。</title>
      <link>http://www.itpub.net/viewthread.php?tid=1281611</link>
      <description><![CDATA[及其简单的一个FUNC：
CREATE OR REPLACE Function test_fun3(P1 in Varchar2, P2 in Varchar2) Return Number is
  Result Number;
Begin
  Begin
    select lzr into Result from table1@db2 where aaaa=P1 and bbbb=P2;
  Exception when others Then
    Re ...]]></description>
      <category>Oracle开发</category>
      <author>51qqq</author>
      <pubDate>Sun, 21 Mar 2010 03:34:03 +0000</pubDate>
    </item>
    <item>
      <title>Oracle执行计划</title>
      <link>http://www.itpub.net/viewthread.php?tid=1281477</link>
      <description><![CDATA[请问一下，要怎么操作才可以看出类似下面的执行计划？
-----------------------------------------------------------------------------------------
| Id  | Operation                | Name | Rows  | Bytes |TempSpc| Cost (%CPU)| Time     |
---------------- ...]]></description>
      <category>Oracle开发</category>
      <author>wxs_oracle</author>
      <pubDate>Sat, 20 Mar 2010 05:18:19 +0000</pubDate>
    </item>
    <item>
      <title>一个很有挑战性的需求,求PLSQL脚本</title>
      <link>http://www.itpub.net/viewthread.php?tid=1281350</link>
      <description><![CDATA[现在有一个需求，如果输入9(3)，那么就应该输出为999，而如果是9(3).9(2)，就应该输出为999.99，即（）内为要重复的个数，更多范例请看下表。
输入        输出
999        999
9(6)        999999
9(3)        999
-9(6).99        -999999.99
-9(6).9(2)        ...]]></description>
      <category>Oracle开发</category>
      <author>slls</author>
      <pubDate>Fri, 19 Mar 2010 13:17:57 +0000</pubDate>
    </item>
    <item>
      <title>case when的替换？</title>
      <link>http://www.itpub.net/viewthread.php?tid=1281327</link>
      <description><![CDATA[各位：
case when 语句原理是：匹配了上一个when语句，则在下面就不匹配了。
但是我现在希望，匹配了上面后，下面还要继续匹配，有没有什么方法？

例如：
 create table lyqtest(
  id number);


 insert into lyqtest values(1);
 insert into lyqtest val ...]]></description>
      <category>Oracle开发</category>
      <author>凝结水晶</author>
      <pubDate>Fri, 19 Mar 2010 11:43:58 +0000</pubDate>
    </item>
    <item>
      <title>请教一个行列转换问题</title>
      <link>http://www.itpub.net/viewthread.php?tid=1281301</link>
      <description><![CDATA[已知100,101,102,103，想根据这些数据得到以下结果集（列转成行）
100
101
102
103

另外100,101,102,103 后面可能还有其他数，比如（100,101,102,103,104,...,nnn）

请问用SQL有办法么？？？可利用(select 100,101,102,103,...,nnn from dual )得到结果集再处 ...]]></description>
      <category>Oracle开发</category>
      <author>herolad</author>
      <pubDate>Fri, 19 Mar 2010 10:30:04 +0000</pubDate>
    </item>
    <item>
      <title>select 语句IN操作的一个疑问</title>
      <link>http://www.itpub.net/viewthread.php?tid=1281300</link>
      <description><![CDATA[select  * from t1 where col1 in (select colA from t2);

in list是有限制的。那该如何取代呢？]]></description>
      <category>Oracle开发</category>
      <author>XQKA</author>
      <pubDate>Fri, 19 Mar 2010 10:00:35 +0000</pubDate>
    </item>
    <item>
      <title>何时使用函数索引</title>
      <link>http://www.itpub.net/viewthread.php?tid=1281268</link>
      <description><![CDATA[由于 字段是 UTC时间格式 需要统计 当日的 数据
建立了下面的函数索引

create index ip_buildtime  on TH_POSITIONINFO(to_char(to_date(19700101,'yyyymmdd') + (BUILT_TIME+8*60*60)/86400,'yyyymmdd'))  tablespace users; 


但是 下面的查询在分析器里显示  ...]]></description>
      <category>Oracle开发</category>
      <author>xrgf</author>
      <pubDate>Fri, 19 Mar 2010 09:00:13 +0000</pubDate>
    </item>
    <item>
      <title>【讨论】Group by中的疑惑</title>
      <link>http://www.itpub.net/viewthread.php?tid=1281258</link>
      <description><![CDATA[如图，我的执行SQL及出来的结果

问题

1、来路页面中，记录ID为2，3的两条记录来路页面都是完全相同的，页面标题都是相同的-死神，我group by是按来路页面来分组的，应该这两个相同的就应该合并在一起了的，为什么没合并？

（因为我记录ID为3的记录中，来路分类 ...]]></description>
      <category>Oracle开发</category>
      <author>fan0124</author>
      <pubDate>Fri, 19 Mar 2010 08:41:25 +0000</pubDate>
    </item>
    <item>
      <title>震撼推出超方便实用的Oralce客户端工具 - Oracle SQL Handler V3.3，双语界面...</title>
      <link>http://www.itpub.net/viewthread.php?tid=1281192</link>
      <description><![CDATA[]]></description>
      <category>Oracle开发</category>
      <author>p0063</author>
      <pubDate>Fri, 19 Mar 2010 06:58:26 +0000</pubDate>
    </item>
    <item>
      <title>如何批量执行某个文件夹下所有的 .sql脚本？</title>
      <link>http://www.itpub.net/viewthread.php?tid=1281167</link>
      <description><![CDATA[如题]]></description>
      <category>Oracle开发</category>
      <author>CS-IM</author>
      <pubDate>Fri, 19 Mar 2010 06:13:20 +0000</pubDate>
    </item>
    <item>
      <title>SQL语言是1阶语言吗?</title>
      <link>http://www.itpub.net/viewthread.php?tid=1281155</link>
      <description><![CDATA[为什么? 谢谢]]></description>
      <category>Oracle开发</category>
      <author>kgisme170</author>
      <pubDate>Fri, 19 Mar 2010 05:59:43 +0000</pubDate>
    </item>
    <item>
      <title>OCI Direct Path文档</title>
      <link>http://www.itpub.net/viewthread.php?tid=1281129</link>
      <description><![CDATA[1]]></description>
      <category>Oracle开发</category>
      <author>〇〇</author>
      <pubDate>Fri, 19 Mar 2010 04:42:30 +0000</pubDate>
    </item>
    <item>
      <title>请教个按条件查询统计问题</title>
      <link>http://www.itpub.net/viewthread.php?tid=1281089</link>
      <description><![CDATA[请教下
如果一个页面，需要用户输四个值a,b,c,d。根据用户输入不同，来统计总数并返回。
这个在ORACLE存储过程里应该怎么实现？是动态拼SQL语句吗？
谢谢大大们指点下。

]]></description>
      <category>Oracle开发</category>
      <author>cccdddd2003</author>
      <pubDate>Fri, 19 Mar 2010 03:46:41 +0000</pubDate>
    </item>
    <item>
      <title>树形结构展平 sql</title>
      <link>http://www.itpub.net/viewthread.php?tid=1281064</link>
      <description><![CDATA[有树形结构数据库表：
id     name      fathercode 
1001   总公司           
1002   分公司1     1001
1003   分公司2     1001
1004   分公司11    1002
1005   分公司111   1004
1006   分公司21    1003
1007   分公司22    1003
1008   分公司221   100 ...]]></description>
      <category>Oracle开发</category>
      <author>donglx2004</author>
      <pubDate>Fri, 19 Mar 2010 03:14:17 +0000</pubDate>
    </item>
    <item>
      <title>DB2 error -802</title>
      <link>http://www.itpub.net/viewthread.php?tid=1281041</link>
      <description><![CDATA[各位兄弟姐妹， 看下下面的问题该怎么解决啊？

select (case when aremst.loccod = 
          'P' then  count(distinct invlod.lodnum) when aremst.loccod = 
          'V' then  sum( (case when uniqueness_query.dtl_is_serialized =
                     ...]]></description>
      <category>Oracle开发</category>
      <author>jack198409</author>
      <pubDate>Fri, 19 Mar 2010 02:59:09 +0000</pubDate>
    </item>
    <item>
      <title>【求解】这个SQL哪里出问题了吗</title>
      <link>http://www.itpub.net/viewthread.php?tid=1281006</link>
      <description><![CDATA[如下，写的SQL，突然抱了个ORA-01002错误，很纳闷

create or replace procedure testprc (rscur OUT SYS_REFCURSOR)
is
  --定义变量类型
  tempcur SYS_REFCURSOR;
  keyword varchar2(256);

begin
  --打开游标并赋值
  open tempcur for
  select refer ...]]></description>
      <category>Oracle开发</category>
      <author>fan0124</author>
      <pubDate>Fri, 19 Mar 2010 02:14:04 +0000</pubDate>
    </item>
    <item>
      <title>with   as  问题</title>
      <link>http://www.itpub.net/viewthread.php?tid=1281001</link>
      <description><![CDATA[请教 ，select * from t1 查的出数据， 我用with t  as  （select * from t1） 的话，查出值为空，不知道为什么，有人知道吗 ？]]></description>
      <category>Oracle开发</category>
      <author>yang_wen_zhu</author>
      <pubDate>Fri, 19 Mar 2010 02:08:34 +0000</pubDate>
    </item>
    <item>
      <title>【求解】在Windows客户端打开SQL/PLUS的问题</title>
      <link>http://www.itpub.net/viewthread.php?tid=1280989</link>
      <description><![CDATA[如图，这是我通过安装在我客户端机器上的Oracle客户端打开SQL/PLUS，可是奇怪，怎么会出现适配器错误呢，我的PL/SQL及客户端测试服务都是通的啊

 难道还一定要进服务器端用sqlplus命令进入SQL/PLUS吗]]></description>
      <category>Oracle开发</category>
      <author>fan0124</author>
      <pubDate>Fri, 19 Mar 2010 01:54:46 +0000</pubDate>
    </item>
    <item>
      <title>all_tables/all_objects bug？</title>
      <link>http://www.itpub.net/viewthread.php?tid=1280980</link>
      <description><![CDATA[今天为了解决一个问题，写了一个函数：
问题：枚举数据库中所有不是空的表名。
解决方案：写一个函数，将表名作为传参，返回该表的记录数
函数：
  create or replace function fun_tab_rowCounts(p_tab_name in varchar2)
return number
authid current_user
as ...]]></description>
      <category>Oracle开发</category>
      <author>wildwave</author>
      <pubDate>Fri, 19 Mar 2010 01:22:49 +0000</pubDate>
    </item>
    <item>
      <title>Service Broker 初探</title>
      <link>http://www.itpub.net/viewthread.php?tid=1280952</link>
      <description><![CDATA[SQL Server 2005 Service Broker 初探]]></description>
      <category>Oracle开发</category>
      <author>〇〇</author>
      <pubDate>Fri, 19 Mar 2010 00:32:55 +0000</pubDate>
    </item>
    <item>
      <title>excel report issue</title>
      <link>http://www.itpub.net/viewthread.php?tid=1280917</link>
      <description><![CDATA[Hi I need to generate a excel report from report developer 10g. one issue I have is the &quot;Chr(10)&quot; character. I need the wrap text (Alt-Enter in excel) in one cell. 

1. sql query I wrote is &quot;select columnA||chr(10)||columnB from tableX&qu]]></description>
      <category>Oracle开发</category>
      <author>tbi37</author>
      <pubDate>Thu, 18 Mar 2010 14:50:37 +0000</pubDate>
    </item>
    <item>
      <title>如何写字符串替换的sql</title>
      <link>http://www.itpub.net/viewthread.php?tid=1280899</link>
      <description><![CDATA[oracle9.2
比如有个字段叫tt，把字符串中的第2个到第3个字符替换成“oo”，如
wan----&gt;woo
wangwu----&gt;woogwu
wangwang----&gt;woogwang
这个sql该怎么写？(假设字符串长度至少3)

如果要替换字符串中第一次出现的an，如
wan---&gt;woo
wanwan---&gt;woowan
又该怎么写 ...]]></description>
      <category>Oracle开发</category>
      <author>032615</author>
      <pubDate>Thu, 18 Mar 2010 13:27:00 +0000</pubDate>
    </item>
    <item>
      <title>不真正删除数据库中的数据</title>
      <link>http://www.itpub.net/viewthread.php?tid=1280896</link>
      <description><![CDATA[数据库设计时候是否应该每张表都加上一个字段 isenable(存一些状态，如不启用，启用，冻结等等)
而不真正删除数据库中的数据，即不delete数据
保证所有数据都保存。]]></description>
      <category>Oracle开发</category>
      <author>catanhit</author>
      <pubDate>Thu, 18 Mar 2010 13:20:55 +0000</pubDate>
    </item>
    <item>
      <title>pl_sql如何对之前已提交的误操作回滚</title>
      <link>http://www.itpub.net/viewthread.php?tid=1280891</link>
      <description><![CDATA[pl_sql7.15
pl_sql如何对之前已提交的误操作回滚，比如：
应该是
update test
set name='a'
where id='11'
结果写成了
update test
set name='a'
并且不小心提交了，请问该如何回滚这次误操作。]]></description>
      <category>Oracle开发</category>
      <author>032615</author>
      <pubDate>Thu, 18 Mar 2010 13:00:08 +0000</pubDate>
    </item>
    <item>
      <title>OCI程序调用stl hash_map的奇怪问题</title>
      <link>http://www.itpub.net/viewthread.php?tid=1280866</link>
      <description><![CDATA[不优化，/01都正常执行完 /O2就非法操作
Microsoft Windows XP ,recn=3583984

D:\lt\dl&gt;]]></description>
      <category>Oracle开发</category>
      <author>〇〇</author>
      <pubDate>Thu, 18 Mar 2010 11:53:50 +0000</pubDate>
    </item>
    <item>
      <title>执行计划一样，执行时间却不一样，两种写法有什么区别？</title>
      <link>http://www.itpub.net/viewthread.php?tid=1280859</link>
      <description><![CDATA[以下两个语句，都是从两张用account关联的表中，按account字段分组统计出balance不同的结果集，执行计划上看是一样的，执行结果也是一样的，但在plsql执行后，分别显示的执行时间却差很多，第一个语句执行时间是0.015，第二个是0.079，多次执行，数据有出入但是基本维持 ...]]></description>
      <category>Oracle开发</category>
      <author>freeandnil</author>
      <pubDate>Thu, 18 Mar 2010 11:43:07 +0000</pubDate>
    </item>
    <item>
      <title>【讨论】游标的关闭问题</title>
      <link>http://www.itpub.net/viewthread.php?tid=1280829</link>
      <description><![CDATA[如下（很长时间没写返回结果集的存储过程，游标没咋去使用了）

   CREATE OR REPLACE PROCEDURE test1 (cc OUT SYS_REFCURSOR)
AS
BEGIN
    OPEN cc FOR select * from pd_brw;
END;


1. 关闭游标写在哪里呢，写在SQL结束后的地方，因为我需要游标来返回结果 ...]]></description>
      <category>Oracle开发</category>
      <author>fan0124</author>
      <pubDate>Thu, 18 Mar 2010 09:51:13 +0000</pubDate>
    </item>
    <item>
      <title>PL/SQL DEVELOPER安装问题</title>
      <link>http://www.itpub.net/viewthread.php?tid=1280783</link>
      <description><![CDATA[]]></description>
      <category>Oracle开发</category>
      <author>ljkcaizi</author>
      <pubDate>Thu, 18 Mar 2010 08:45:32 +0000</pubDate>
    </item>
    <item>
      <title>操作blob字段问题</title>
      <link>http://www.itpub.net/viewthread.php?tid=1280715</link>
      <description><![CDATA[读取一个表中的blob字段，这个字段中存储的是很多sql语句串，例如： insert into table1 values('',''); insert into table2 values('',''); insert into table3 values('','');......，两条sql语句间用相同的特殊符号隔开，字段中sql语句数量不定，可能会有几十条。
我 ...]]></description>
      <category>Oracle开发</category>
      <author>baideer</author>
      <pubDate>Thu, 18 Mar 2010 06:52:05 +0000</pubDate>
    </item>
    <item>
      <title>如何给表达式加括号</title>
      <link>http://www.itpub.net/viewthread.php?tid=1280697</link>
      <description><![CDATA[比如
F&gt;=100 OR F=50 AND C IN('1','2','5')
希望得到  AND C IN('1','2','5')

也就是或的关系都要加上括号]]></description>
      <category>Oracle开发</category>
      <author>autumn_leaf</author>
      <pubDate>Thu, 18 Mar 2010 06:18:19 +0000</pubDate>
    </item>
    <item>
      <title>将数据自动移到另外的表空间中应该怎么做啊？</title>
      <link>http://www.itpub.net/viewthread.php?tid=1280643</link>
      <description><![CDATA[请教各位高手：
根据表中的某一字段的值将符合条件的数据自动地移到另外一个表空间中，应该怎么做呢？
谢谢！]]></description>
      <category>Oracle开发</category>
      <author>沉香凝</author>
      <pubDate>Thu, 18 Mar 2010 04:41:27 +0000</pubDate>
    </item>
    <item>
      <title>请教A是大表，B,C，D是3张小表，该怎么实现哈希连接呢？</title>
      <link>http://www.itpub.net/viewthread.php?tid=1280610</link>
      <description><![CDATA[A是大表，1000W记录
B,C，D是3张小表，都只有几百，几千行

怎么实现把B,C,D放入哈希
然后遍历A表，每行到哈希连接读一读B,C,D表
A和B,C,D都是外连接关系

这个怎么实现呢？提示该怎么写呢？
谢谢]]></description>
      <category>Oracle开发</category>
      <author>snow_winter</author>
      <pubDate>Thu, 18 Mar 2010 03:47:35 +0000</pubDate>
    </item>
  </channel>
</rss>