I'm trying to write a MySQL query to select words composed only by specified letters.
For example given the sequence 'by' would be selected words like 'b', 'y', 'byb', 'bbyy', 'byyybb', 'yy' and so on.
So only words composed by 1 or more occurrence of 1 or more of those letters, kind of super-anagrams.
This is part of a Java application, so if is not possible to do this in a query I'll find a solution in Java
Thanks
