>Can anyone explain why LIKE queries do not use an index when the
>LIKE string contains a forward slash?

Follow-up to my own post:
The problem is with the '_' wildcard, but I still don't understand. My
previous examples were simplified, but here is the exact query:

SELECT * FROM words WHERE word LIKE 'Regional/North_America'
SELECT * FROM words WHERE word LIKE 'Regional North_America'

I understand the the underscore was matching a wildcard and not a literal,
but I still don't understand why the first query DOES NOT use the index on
word and the second query does.


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to