I want to do something like:
SELECT password FROM users WHERE username CONTAINS SOME OF A STRING
Suppose this is the users table:
USERNAME PASSWORD
test1 pass1
test2 pass2
test3 pass3
if the string in the query equals "test2@domain", it would return "pass2"...since the username contains a substring of the string
I've looked at using REGEXP and Like, but I'm confused.
Have any suggestions? Thanks!