Bonjour,

Je voulais savoir si un order by tirait parti des indexes ?

En effet j'ai une requête avec un order by sur 2 colonnes et elle mets longtemps à s'executer avec ou sans index composé sur ces colonnes.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
 
create index on toto
(champ1 ASC, champ2 ASC);
 
select * from toto order by champ1 ASC, champ2 ASC;
toto comporte bcp de lignes.

Comment faire en sorte que ma requête bénéficie de l'index ?

Merci
Oracle 8i.
toto = à peu près 200 000 lignes