Skip to content

Instantly share code, notes, and snippets.

@aurorapar
Created October 27, 2017 23:28
Show Gist options
  • Save aurorapar/8b3ce09d5aad8eef652fe73f3ecfb486 to your computer and use it in GitHub Desktop.
Save aurorapar/8b3ce09d5aad8eef652fe73f3ecfb486 to your computer and use it in GitHub Desktop.
USE acore_auth;
SELECT testOne.username, testTwo.username
FROM account as testOne,
account as testTwo
WHERE
testOne.username=testTwo.username
OR testOne.last_ip=testTwo.last_ip
OR testOne.last_ip=testTwo.last_attempt_ip
OR testOne.last_attempt_ip=testTwo.last_ip
OR testOne.email=testTwo.email
OR testOne.sha_pass_hash = testTwo.sha_pass_hash
OR testOne.username LIKE CONCAT('%', testTwo.username ,'%')
OR testTwo.username LIEK CONCAT('%', testOne.username ,'%')
;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment