Skip to content

Commit a96f282

Browse files
OleksiiKovalovrwestMSFT
authored andcommitted
Enhance REGEXP_LIKE examples with case-insensitivity
Added a case-insensitive example for REGEXP_LIKE in the Employees table.
1 parent d0aba95 commit a96f282

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

docs/t-sql/functions/regexp-like-transact-sql.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,14 @@ FROM Employees
7979
WHERE REGEXP_LIKE (FIRST_NAME, '^A.*Y$');
8080
```
8181

82+
Select all records from the `Employees` table where the first name starts with `A` and ends with `Y` using case-insensitive mode
83+
84+
```sql
85+
SELECT *
86+
FROM Employees
87+
WHERE REGEXP_LIKE (FIRST_NAME, '^A.*Y$', 'i');
88+
```
89+
8290
Select all records from the `Orders` table where the order date is in February 2020:
8391

8492
```sql

0 commit comments

Comments
 (0)