注释那句放出来 好像就全表扫描了
select task_code,component_code,operatoruser_code,sum(statistical_data) as data1
from
(
select task_code,component_code,operatoruser_code,statistical_data
from T_assessdata where task_code>' '
--and operatortime >='20110301000000' and operatortime<='20110930235959'
group by task_code,component_code,operatoruser_code,statistical_data
)a
group by task_code,component_code,operatoruser_code120W条数据 日期条件去掉 0.71秒 加上 4.3秒
解决方案 »
- RAC voting disk的作用?
- oracle中有没有算分位数的函数?或者怎么能算出来分位数?
- win7下无法成功安装oracle for nt
- 从oracle导入NUMBER(16,2)型数据的问题
- 请教一个游标 跨实例查询的问题?
- oracle 数据库无法启动?????
- 昨天问题在大家的帮助下成功解决,又提了,谢谢!
- pl/sql可以操作纯文本文件嘛?
- 请高手帮忙
- 配listenr时, 设置IPC协议的KEY 的值从哪里来? 是什么意思?
- win2008 oracle 11g,客户端连接后找不到表
- imp命令导入dmp文件,提示IMP-00003:ORA-23404:ORA-06512:IMP-00017: ORA-00001: 等错误
operatortime 什么格式的?怎么做字符串比较?太耗性能了,换个其它类型的,速度就上去了
-------------------------------------------------------------------------------------
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
-------------------------------------------------------------------------------------
| 0 | SELECT STATEMENT | | 3 | 135 | 4704 (1)| 00:00:57 |
| 1 | HASH GROUP BY | | 3 | 135 | 4704 (1)| 00:00:57 |
| 2 | VIEW | VM_NWVW_0 | 5 | 225 | 4704 (1)| 00:00:57 |
| 3 | HASH GROUP BY | | 5 | 305 | 4704 (1)| 00:00:57 |
|* 4 | TABLE ACCESS FULL| T_ASSESSDATA | 10268 | 611K| 4703 (1)| 00:00:57 |
-------------------------------------------------------------------------------------
Predicate Information (identified by operation id):
---------------------------------------------------
4 - filter("OPERATORTIME">='20110901000000' AND
"OPERATORTIME"<='20110923235959' AND "TASK_CODE">' ')