SQL Flow Field Guide

% (wildcard - characters to match)

Catalog support for SQL Server 2022 (16.x) and 2025 (17.x)

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 - characters to match) 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 - characters to match). The pattern for % (wildcard - characters to match) matches only the intended strings under the active collation.

Open Microsoft Learn for full syntax, permissions, and details for your version.