문서의 선택한 두 판 사이의 차이를 보여줍니다.
| 양쪽 이전 판이전 판다음 판 | 이전 판 | ||
| oracle:hint [2018/02/20 04:36] – [C. JOIN 순서를 결정하는 Hints] taekgu | oracle:hint [2025/04/15 10:05] (현재) – 바깥 편집 127.0.0.1 | ||
|---|---|---|---|
| 줄 142: | 줄 142: | ||
| from a, b | from a, b | ||
| where a.a=b.a; | where a.a=b.a; | ||
| + | </ | ||
| + | <code sql> | ||
| + | select /*+ LEADING(d) USE_NL(e) */ | ||
| + | e.ename, d.dname | ||
| + | from mydept1 d, myemp1 e | ||
| + | where e.deptno = d.deptno; | ||
| + | </ | ||
| + | <code sql> | ||
| + | select /*+ LEADING(d) USE_HASH(e) */ | ||
| + | | ||
| + | from mydept1 d, myemp1 e | ||
| + | where e.deptno = d.deptno; | ||
| + | </ | ||
| + | <code sql> | ||
| + | SELECT /*+ LEADING(E) USE_NL(D) */ E.ENAME, D.DNAME | ||
| + | FROM EMP E, DEPT D | ||
| + | WHERE E.DEPTNO = D.DEPTNO; | ||
| + | |||
| + | SELECT /*+ ORDERED USE_NL(D) */ E.ENAME, D.DNAME | ||
| + | FROM EMP E, DEPT D | ||
| + | WHERE E.DEPTNO = D.DEPTNO; | ||
| </ | </ | ||
| === 2.STAR === | === 2.STAR === | ||