Welcome Guest, Not a member yet? Register   Sign In
[Solved]Help with mysql index
#1

[eluser]rogierb[/eluser]
Hi guys n gals,

I've got a query like
Code:
SELECT * FROM user where (lastname like 'myself%' OR firstname like 'myself%')
ORDER BY lastname,  firstname
to search for either lastname or firstname.

Somehow I don't seem to be able to get a working index for this query. I've played around with fulltext and a sh*tload of other possibilities but i can only get it working with just one 'like'. As soon as I add the second one, *poof* the index doesn't work anymore.

Anyone out there that can kick me in the right direction?

Thanx;-)


Messages In This Thread
[Solved]Help with mysql index - by El Forum - 04-15-2009, 01:22 AM
[Solved]Help with mysql index - by El Forum - 04-15-2009, 02:02 AM
[Solved]Help with mysql index - by El Forum - 04-15-2009, 02:04 AM
[Solved]Help with mysql index - by El Forum - 04-15-2009, 03:29 AM
[Solved]Help with mysql index - by El Forum - 04-15-2009, 03:54 AM
[Solved]Help with mysql index - by El Forum - 04-15-2009, 04:27 AM
[Solved]Help with mysql index - by El Forum - 04-15-2009, 04:54 AM



Theme © iAndrew 2016 - Forum software by © MyBB