I have a database of English words of a certain length. For example table us_6 contains English words with length of 6.
Now, I want to search the table for words that contains only certain letters. For example, I want to search for words that contains letters vleoyl. I did the search using REGEXP. Here's my query:
    SELECT word FROM us_6 WHERE
    word REGEXP 'v' AND
    word REGEXP 'l' AND
    word REGEXP 'e' AND
    word REGEXP 'o' AND
    word REGEXP 'y' AND
    word REGEXP 'l'
The result returns correct words like lovely and volley but it also returns other words. Here's the result of the query:
    lovely
    loveys
    overly
    volley
Can you help me with this? I only want words that contains exactly the letters provide. For example, vleoyl should only return lovely and volley.
 
     
     
    