MySQL Forums
Forum List  »  Performance

mysql not using index
Posted by: xnicnacx
Date: March 30, 2005 07:05AM

Hi @ll
i have the following problem:
i´m using a statement like SELECT * FROM table WHERE col1=col2;
both col1&col2 are of the type text.
i cant seem to get mysql to use an index in this query, i tried
create index IndexEight on `table` (col1(100),col2(100));
as well as
create index IndexNine on `table` (col1(100));
create index IndexTen on `table` (col2(100));
with different values as indexlength....it still doesnt use any index :/
adding USE INDEX or FORCE INDEX to the query didnt help either......
any suggestions..?
thx 4 your time

Options: ReplyQuote


Subject
Views
Written By
Posted
mysql not using index
2804
March 30, 2005 07:05AM
1828
March 30, 2005 08:18AM
1789
March 30, 2005 10:21AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.