_ (Wildcard - match one character)
LIKE/PATINDEX wildcard _
What changes
- Input
- pattern string
- Output or change
- none
Syntax at a glance
LIKE '..._...'
Work example
A text filter needs the pattern behavior of _ (Wildcard - match one character) for a fixed input string.
Test a match, a near miss, a literal wildcard, and a case difference under the column collation.
Check your work _ (Wildcard - match one character). The pattern for _ (Wildcard - match one character) matches only the intended strings under the active collation.
Open Microsoft Learn for full syntax, permissions, and details for your version.