Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Commit 59b2f93

Browse files
authored
added sql colorizers
1 parent 6470dab commit 59b2f93

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/t-sql/language-elements/assignment-operator-transact-sql.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@ monikerRange: ">=aps-pdw-2016||=azuresqldb-current||=azure-sqldw-latest||>=sql-s
2727

2828
The equal sign (=) is the only [!INCLUDE[tsql](../../includes/tsql-md.md)] assignment operator. In the following example, the `@MyCounter` variable is created, and then the assignment operator sets `@MyCounter` to a value returned by an expression.
2929

30-
```
30+
```sql
3131
DECLARE @MyCounter INT;
3232
SET @MyCounter = 1;
3333
```
3434

3535
The assignment operator can also be used to establish the relationship between a column heading and the expression that defines the values for the column. The following example displays the column headings `FirstColumnHeading` and `SecondColumnHeading`. The string `xyz` is displayed in the `FirstColumnHeading` column heading for all rows. Then, each product ID from the `Product` table is listed in the `SecondColumnHeading` column heading.
3636

37-
```
37+
```sql
3838
-- Uses AdventureWorks
3939

4040
SELECT FirstColumnHeading = 'xyz',

0 commit comments

Comments
 (0)