- 最后登录
- 2014-4-1
- 在线时间
- 42 小时
- 威望
- 62
- 金钱
- 552
- 注册时间
- 2012-2-24
- 阅读权限
- 50
- 帖子
- 104
- 精华
- 0
- 积分
- 62
- UID
- 261
|
2#
发表于 2012-5-16 15:53:04
附执行计划:
SQL> SELECT ATTACHID, UPLBY, UPLDT, FILENM, TABNM, KEY1, KEY2, KEY3, KEY4, KEY5, UPLREM, DELBY, DELDT, DELREM
2 FROM SYT_ATTACHDOC
3 WHERE TABNM = 'CLAIM'
4 AND FILENM = 'F.PDF'
5 AND DELBY IS NULL
6 AND KEY1 = 30050977
7 /
ERROR:
ORA-01722: invalid number
no rows selected
Elapsed: 00:00:00.03
Execution Plan
----------------------------------------------------------
Plan hash value: 2634608109
--------------------------------------------------------------------------------------------------
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
--------------------------------------------------------------------------------------------------
| 0 | SELECT STATEMENT | | 1 | 93 | 4 (0)| 00:00:01 |
|* 1 | TABLE ACCESS BY INDEX ROWID| SYT_ATTACHDOC | 1 | 93 | 4 (0)| 00:00:01 |
|* 2 | INDEX RANGE SCAN | SYT_ATTACHDOC_IDX1 | 2 | | 3 (0)| 00:00:01 |
--------------------------------------------------------------------------------------------------
Predicate Information (identified by operation id):
---------------------------------------------------
1 - filter(TO_NUMBER("KEY1")=30050977 AND "TABNM"='CLAIM' AND "DELBY" IS NULL)
2 - access("FILENM"='F.PDF')
Statistics
----------------------------------------------------------
7 recursive calls
0 db block gets
67 consistent gets
0 physical reads
0 redo size
1067 bytes sent via SQL*Net to client
364 bytes received via SQL*Net from client
2 SQL*Net roundtrips to/from client
0 sorts (memory)
0 sorts (disk)
0 rows processed
看样子是做了隐式转换。已经做了隐式转换与手工加下引号是一样的,也会报错? |
|