oracle 表combine,index_combine hint的一点问题

SQL> create table test as select object_id,object_type,status from dba_objects where 1=0;

Table created.

SQL> create index tobject_id on test(object_id);

Index created.

SQL> create index tobject_type on test(object_type);

Index created.

SQL> set autotrace on

SQL> select /*+ index_combine(test tobject_id tobject_type) */ * from test where object_id>5000 and object_type='INDEX';

no rows selected

Execution Plan

----------------------------------------------------------

Plan hash value: 2953102736

--------------------------------------------------------------------------------

-----------------

| Id  | Operation                        | Name         | Rows  | Bytes | Cost (

%CPU)| Time     |

--------------------------------------------------------------------------------

-----------------

|   0 | SELECT STATEMENT                 |              |     1 |    29 |     4

(25)| 00:00:01 |

|   1 |  TABLE ACCESS BY INDEX ROWID     | TEST         |     1 |    29 |     4

(25)| 00:00:01 |

|   2 |   BITMAP CONVERSION TO ROWIDS    |              |       |       |

|          |

|   3 |    BITMAP AND                    |              |       |       |

|          |

|   4 |     BITMAP CONVERSION FROM ROWIDS|              |       |       |

|          |

|*  5 |      INDEX RANGE SCAN            | TOBJECT_TYPE |       |       |     1

(0)| 00:00:01 |

|   6 |     BITMAP CONVERSION FROM ROWIDS|              |       |       |

|          |

|   7 |      SORT ORDER BY               |              |       |       |

|          |

|*  8 |       INDEX RANGE SCAN           | TOBJECT_ID   |       |       |     1

(0)| 00:00:01 |

--------------------------------------------------------------------------------

-----------------

Predicate Information (identified by operation id):

---------------------------------------------------

5 - access("OBJECT_TYPE"='INDEX')

8 - access("OBJECT_ID">5000)

filter("OBJECT_ID">5000)

Note

-----

- dynamic sampling used for this statement (level=2)

Statistics

----------------------------------------------------------

24  recursive calls

0  db block gets

2  consistent gets

0  physical reads

0  redo size

478  bytes sent via SQL*Net to client

513  bytes received via SQL*Net from client

1  SQL*Net roundtrips to/from client

0  sorts (memory)

0  sorts (disk)

0  rows processed

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值