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
[[] (Wildcard - Character(s) to Match)](../../t-sql/language-elements/wildcard-character-s-to-match-transact-sql.md)
47
-
[[^] (Wildcard - Character(s) Not to Match)](../../t-sql/language-elements/wildcard-character-s-not-to-match-transact-sql.md)
48
-
[_ (Wildcard - Match One Character)](../../t-sql/language-elements/wildcard-match-one-character-transact-sql.md)
49
-
50
-
28
+
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.
29
+
30
+
## Examples
31
+
32
+
### Example A: Match end of string
33
+
34
+
The following example returns the first and last names of people in the `Person.Person` table of `AdventureWorks2019`, where the first name starts with `Dan`.
35
+
36
+
```sql
37
+
SELECT FirstName, LastName
38
+
FROMPerson.Person
39
+
WHERE FirstName LIKE'Dan%';
40
+
GO
41
+
```
42
+
43
+
### Example B: Match middle of string
44
+
45
+
The following example returns the first and last names of people in the `Person.Person` table of `AdventureWorks2019`, where the first name starts with `J` and ends with `n`.
0 commit comments