Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: ORDER BY - using index
SELECT data_czas_wprowadzenia, ilosc FROM depozyt ORDER BY sygnatura
sygnatura is NUMERIC(10).
data_czas_wprowadzenia is TIMESTAMP(0)
ilosc is NUMERIC(7,2)
In this select index is not used, but in below yes.
SELECT /*+INDEX DEP_K_SYGNATURA_DEPOZYT*/ data_czas_wprowadzenia, ilosc FROM depozyt ORDER BY sygnatura
DEP_K_SYGNATURA_DEPOZYT is unique index create on depozyt (sygnatura,
id_depozytu desc)
id_depozytu is NUMERIC (10)
Boguslaw Pazur Received on Wed Mar 08 2006 - 05:03:11 CST
![]() |
![]() |