解决方案 »
- 仅有50分求解---复制远程记录时出现ORA-28009错误.
- 如何建立create和insert表,当表名中有@ + -的时候?
- clob字段到底怎么更新
- SQL Server转过来了,120分求救
- oracle有类似于mysql那样的SQL语言参考吗?chm版的。
- 傻傻的问,sid是什么东西
- oracle 到底有没有支持 limit 语句啊?
- oracle建表的问题,请教!!
- oracle 表空间如何建立
- 求助关于 OPTIMIZER_FEATURES_ENABLE的设定会影响sql执行报错
- 由于oracle数据库达到最大连接数。sqlplus登陆会报错。但是要获取当前的连接数。
- SELECT的FETCH问题
1 DB CPU 0.035 77.1
2 parse time elapsed 0.03 65.3
3 hard parse elapsed time 0.026 56.6
4 sql execute elapsed time 0.015 33
5 PL/SQL compilation elapsed time 0.004 10.3
6 connection management call elapsed time 0.003 7.1
7 PL/SQL execution elapsed time 0.001 2.9
8 repeated bind elapsed time 0 0.4
select count(1) from fx_bookinfo
1 DB CPU 0.04 79.4
2 parse time elapsed 0.031 61
3 hard parse elapsed time 0.026 52.2
4 sql execute elapsed time 0.018 36
5 PL/SQL compilation elapsed time 0.004 9.3
6 connection management call elapsed time 0.003 6.4
7 PL/SQL execution elapsed time 0.001 3
8 repeated bind elapsed time 0 0.3
按你的说法测试发现确实是解析上存在时间差。呵呵,给分
2、如果count(索引字段)利用上索引与count(*)是有区别的,区别是性能上前者使用索引肯定快,另外两者结果并不一定等价(如果索引字段有值为null的情况下,count(索引字段)是对null值的行不记数,而count(*)要记数)
相当一个函数,所以你不走索引。