150
What is the complete list of all special characters for a SQL (I'm interested in SQLÂ Server, but other's would be good too) LIKE clause?
E.g.,
SELECT Name FROM Person WHERE Name LIKE '%Jon%'
- %
- _
- [specifier] E.g. [a-z]
- [^specifier]
- ESCAPE clause E.g. %30!%%' ESCAPE '!' will evaluate 30% as true
- ' characters need to be escaped with ' E.g. they're becomes they''re
%- Any string of zero or more characters._- Any single character- ESCAPE clause E.g. %30!%%' ESCAPE '!' will evaluate 30% as true
%- Any string of zero or more characters._- Any single character- ESCAPE clause E.g. %30!%%' ESCAPE '!' will evaluate 30% as true
Sybase
- %
- _
- [specifier] E.g. [a-z]
- [^specifier]
%- Any string of zero or more characters._- Any single character
Reference Guide here [PDF]