You are here: Re: Indexing « PHP Programming Language « IT news, forums, messages
Re: Indexing

Posted by Captain Paralytic on 01/30/08 10:05

On 30 Jan, 09:13, UKuser <spiderc...@yahoo.co.uk> wrote:
> Hi Folks,
>
> Having some wierd problems with indexing in my query. If I run the
> following
>
> explain
> select basket.*, companies.Company_ID as Company_ID
> from basket
> inner join companies on basket.Company_ID=companies.Company_ID
> where
> basket.`Status`='Open'
>
> An index is used for companies.Company_ID and basket.Status. The
> minute I try to pull anything else through from the companies table
> (i.e.:
> select basket.*, companies.Company_ID as Company_ID, companies.Name)
> It won't use the Company_ID index, even though the inner join is using
> it. Why is that?
>
> Any help or direction to investigate would be great.
>
> Many thanks
>
> A

This has nothing to do with php.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация