Skip to content

Instantly share code, notes, and snippets.

@Tracnac
Created October 19, 2022 11:42
Show Gist options
  • Select an option

  • Save Tracnac/c85737ed30e17864fcd47623c78ab6e0 to your computer and use it in GitHub Desktop.

Select an option

Save Tracnac/c85737ed30e17864fcd47623c78ab6e0 to your computer and use it in GitHub Desktop.
Escape wildcard characters #oracle #sql

Escape wildcard characters The LIKE keyword allows for string searches. The '_' wild card character is used to match exactly one character, while '%' is used to match zero or more occurrences of any characters. These characters can be escaped in SQL. Examples:

SELECT name FROM emp
WHERE id LIKE '%/_%' ESCAPE '/';


SELECT name FROM emp
WHERE id LIKE '%\%%' ESCAPE '\';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment