본문 바로가기

SQL

인덱스 우선순위

① Rowid = Constant의 비교
② Unique indexed column = Constant의 비교
③ Entire unique concatenated index = Constant의 비교
④ Entire cluster key = Corresponding cluster key in another table in same cluster의 비교
⑤ Entire cluster key = Constant의 비교
⑥ Entire non unique concatenated index = Constant의 비교
⑦ Non unique index = Constant의 비교
⑧ Entire concatenated index >= Constant의 비교
⑨ Unique indexed column BETWEEN low value AND high value, or Unique indexed column LIKE ‘C%’의 비교
⑩ Non unique indexed column BETWEEN low value AND high value, or Non Unique indexed column LIKE C%의 비교
⑪ Unique indexed column < or > Constant의 비교
⑫ Non unique indexed column < or > Constant의 비교
⑬ Sort/Merge(Joins only)의 비교
⑭ Max or Min of single indexed column의 비교
⑮ ORDER BY entire index의 비교

'SQL' 카테고리의 다른 글

[mysql] sum에 활용  (0) 2013.09.26
JOIN  (0) 2013.09.26
JOIN, GROUP BY, BETWEEN 조합  (0) 2013.09.26
group by  (0) 2013.09.26
between  (0) 2013.09.26