You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Matches any string of zero or more characters. This wildcard character can be used as a prefix, a suffix, or in the middle of the string. The pattern string can contain more than one % wildcard.
Examples
Example A: Match end of string
The following example returns the first and last names of people in the Person.Person table of [!INCLUDE sssampledbobject-md], where the first name starts with Dan.
SELECT FirstName, LastName
FROMPerson.PersonWHERE FirstName LIKE'Dan%';
GO
Example B: Match middle of string
The following example returns the first and last names of people in the Person.Person table of [!INCLUDE sssampledbobject-md], where the first name starts with J and ends with n.
SELECT FirstName, LastName
FROMPerson.PersonWHERE FirstName LIKE'J%n';
GO