Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Help on Indexes!
Adrian Harrison wrote:
>
> I have a table with 2 fields "ID, Name"
>
> I want to be able to search on them both together & individually!
>
> Do I have to create 3 indexes i.e on ID, Name, ID&Name or will just the one
> ID&Name work?
>
> Thanks
>
> Adrian HArrison
(Largely) paraphrased...
An index on (id, name) will help
An index on each will help:
There are a lot of other dependencies on all of this being - format of your SQL etc etc
Cheers
--