728x90

예전 카페에서 폐지 공지가 와서 자료를 옮겨 놓습니다.

 

CREATE INDEX t1_no_idx
ON t1(no) REVERSE
-- PCTFREE 30
-- INITRANS 10
-- TABLESPACE ts01
-- STORAGE(INITIAL 10m NEXT 10m PCTINCREASE 0 MAXEXTENTS UNLIMITED) 

 

정상적인 인덱스를 역으로 접근하는 법( item_index = item_cd + category )

select /*+ INDEX_DESC(PRODUCT item_index) */ *

from product

where item_cd like 'AB%'

  and category like 'C%'

 

ex) 동일한 결과 쿼리 

select * from product

where item_cd like 'AB%'

  and category like 'C%'

order by item_cd desc

 

728x90

'database > oracle' 카테고리의 다른 글

DB LINK (10.04.14 )  (0) 2025.05.19
권한설정관련 (10.04.03 )  (0) 2025.05.19
Schema Mode Export/import (10.03.22 )  (0) 2025.05.19
nls 파라메터 변경 (10.01.28)  (0) 2025.05.19
오라클 기본 연습 상태 만들기 (10.01.03 )  (0) 2025.05.19

+ Recent posts