forward slash in indexed search

2001-03-12 Thread Michael Griffith
Can anyone explain why LIKE queries do not use an index when the LIKE string contains a forward slash? Example: CREATE TABLE words ( word varchar(250) PRIMARY KEY ); Populate table with 200,000+ rows EXPLAIN SELECT * FROM words WHERE word LIKE 'abcdef'; This query uses the Primary key to

Re: forward slash in indexed search

2001-03-12 Thread Michael Griffith
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