Skip to content

Commit ef1c9d5

Browse files
authored
added sql colorizer
1 parent 68f4cac commit ef1c9d5

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

docs/t-sql/queries/search-condition-transact-sql.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ monikerRange: ">=aps-pdw-2016||=azuresqldb-current||=azure-sqldw-latest||>=sql-s
205205
### A. Using WHERE with LIKE and ESCAPE syntax
206206
The following example searches for the rows in which the `LargePhotoFileName` column has the characters `green_`, and uses the `ESCAPE` option because _ is a wildcard character. Without specifying the `ESCAPE` option, the query would search for any description values that contain the word `green` followed by any single character other than the _ character.
207207

208-
```
208+
```sql
209209
USE AdventureWorks2012 ;
210210
GO
211211
SELECT *
@@ -216,7 +216,7 @@ WHERE LargePhotoFileName LIKE '%greena_%' ESCAPE 'a' ;
216216
### B. Using WHERE and LIKE syntax with Unicode data
217217
The following example uses the `WHERE` clause to retrieve the mailing address for any company that is outside the United States (`US`) and in a city whose name starts with `Pa`.
218218

219-
```
219+
```sql
220220
USE AdventureWorks2012 ;
221221
GO
222222
SELECT AddressLine1, AddressLine2, City, PostalCode, CountryRegionCode
@@ -231,7 +231,7 @@ AND City LIKE N'Pa%' ;
231231
### C. Using WHERE with LIKE
232232
The following example searches for the rows in which the `LastName` column has the characters `and`.
233233

234-
```
234+
```sql
235235
-- Uses AdventureWorks
236236

237237
SELECT EmployeeKey, LastName
@@ -242,7 +242,7 @@ WHERE LastName LIKE '%and%';
242242
### D. Using WHERE and LIKE syntax with Unicode data
243243
The following example uses the `WHERE` clause to perform a Unicode search on the `LastName` column.
244244

245-
```
245+
```sql
246246
-- Uses AdventureWorks
247247

248248
SELECT EmployeeKey, LastName

0 commit comments

Comments
 (0)