Skip to content

Instantly share code, notes, and snippets.

@johnnymillergh
Created December 16, 2020 02:11
Show Gist options
  • Save johnnymillergh/ca01fe42b1ca1600ff778dd4bd659326 to your computer and use it in GitHub Desktop.
Save johnnymillergh/ca01fe42b1ca1600ff778dd4bd659326 to your computer and use it in GitHub Desktop.
SQL Like
SELECT *
FROM user
WHERE username LIKE '%/_%' ESCAPE '/';
SELECT *
FROM user
WHERE username LIKE '%\_%';
@johnnymillergh
Copy link
Author

  • The first SQL is a universal LIKE SQL statement to retrieve the fuzzy queries.
  • The second SQL is a universal LIKE SQL statement to retrieve the fuzzy queries.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment