求助:Oracle 9i & 10g 的差别

如下SQL:

select a,a from (
   select trunc(dbms_random.value(0,36)) a from dual
);

在Oracle 9i 和10g中执行结果不同,10g中的结果才是期望的结果。

9i中2次输出的A的值竟然不同,10g中每次都是完全相同的。  

但下面的SQL,只比上面的多了个where rownum < 2 , 9i和10g 无差异,都是每次输出相同的结果。

select a,a from (
   select trunc(dbms_random.value(0,36)) a from dual where rownum < 2
);

 

怀疑是9i和10g的解析方式不同,请哪位高手给出更合理权威的解释。小弟在此先谢过啦!

 

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
/app/smsprev4/src/NewCore/piliang_src_cluster_2023/plcb_2/src/util.cpp:683: undefined reference to `GetHistParam(inpackage*, std::string&, std::string&, std::string&, std::string&, std::string&, std::string&, int&, std::string&, oracle::occi::Date&, int&, std::string&, oracle::occi::Date&, oracle::occi::Date&, oracle::occi::Date&, std::string&, std::string&, std::string&, std::string&, std::string&, std::string)' /app/smsprev4/src/NewCore/piliang_src_cluster_2023/plcb_2/src/util.cpp:714: undefined reference to `updatePreCB(inpackage*, oracle::occi::Date, std::string, std::string, std::string&)' /app/smsprev4/src/NewCore/piliang_src_cluster_2023/plcb_2/src/util.cpp:808: undefined reference to `updatePreCB(inpackage*, oracle::occi::Date, std::string, std::string, std::string&)' bin/util.o: In function `process_xhx_file(std::string, std::string, std::string, int, CFileControl*)': /app/smsprev4/src/NewCore/piliang_src_cluster_2023/plcb_2/src/util.cpp:987: undefined reference to `GetHistParam(inpackage*, std::string&, std::string&, std::string&, std::string&, std::string&, std::string&, int&, std::string&, oracle::occi::Date&, int&, std::string&, oracle::occi::Date&, oracle::occi::Date&, oracle::occi::Date&, std::string&, std::string&, std::string&, std::string&, std::string&, std::string)' /app/smsprev4/src/NewCore/piliang_src_cluster_2023/plcb_2/src/util.cpp:1107: undefined reference to `updatePreCB(inpackage*, oracle::occi::Date, std::string, std::string, std::string&)' /app/smsprev4/src/NewCore/piliang_src_cluster_2023/plcb_2/src/util.cpp:1201: undefined reference to `updatePreCB(inpackage*, oracle::occi::Date, std::string, std::string, std::string&)' collect2: error: ld returned 1 exit status
最新发布
07-25

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值