Skip to content

Commit a3bb541

Browse files
authored
Update output-clause-transact-sql.md
Fix markdown oddity
1 parent ab0c654 commit a3bb541

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

docs/t-sql/queries/output-clause-transact-sql.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ DROP TABLE dbo.table1;
312312
## Examples
313313

314314
### A. Using OUTPUT INTO with a simple INSERT statement
315-
The following example inserts a row into the `ScrapReason` table and uses the `OUTPUT` clause to return the results of the statement to the `@MyTableVar``table` variable. Because the `ScrapReasonID` column is defined with an IDENTITY property, a value is not specified in the `INSERT` statement for that column. However, note that the value generated by the [!INCLUDE[ssDE](../../includes/ssde-md.md)] for that column is returned in the `OUTPUT` clause in the column `inserted.ScrapReasonID`.
315+
The following example inserts a row into the `ScrapReason` table and uses the `OUTPUT` clause to return the results of the statement to the `@MyTableVar` `table` variable. Because the `ScrapReasonID` column is defined with an IDENTITY property, a value is not specified in the `INSERT` statement for that column. However, note that the value generated by the [!INCLUDE[ssDE](../../includes/ssde-md.md)] for that column is returned in the `OUTPUT` clause in the column `inserted.ScrapReasonID`.
316316

317317
```sql
318318
USE AdventureWorks2012;
@@ -387,7 +387,7 @@ GO
387387
```
388388

389389
### D. Using OUTPUT INTO to return an expression
390-
The following example builds on example C by defining an expression in the `OUTPUT` clause as the difference between the updated `VacationHours` value and the `VacationHours` value before the update was applied. The value of this expression is returned to the `@MyTableVar``table` variable in the column `VacationHoursDifference`.
390+
The following example builds on example C by defining an expression in the `OUTPUT` clause as the difference between the updated `VacationHours` value and the `VacationHours` value before the update was applied. The value of this expression is returned to the `@MyTableVar` `table` variable in the column `VacationHoursDifference`.
391391

392392
```sql
393393
USE AdventureWorks2012;
@@ -486,7 +486,7 @@ GO
486486
```
487487

488488
### G. Using OUTPUT INTO with a large object data type
489-
The following example updates a partial value in `DocumentSummary`, an `nvarchar(max)` column in the `Production.Document` table, by using the `.WRITE` clause. The word `components` is replaced by the word `features` by specifying the replacement word, the beginning location (offset) of the word to be replaced in the existing data, and the number of characters to be replaced (length). The example uses the `OUTPUT` clause to return the before and after images of the `DocumentSummary` column to the `@MyTableVar``table` variable. Note that the full before and after images of the `DocumentSummary` column are returned.
489+
The following example updates a partial value in `DocumentSummary`, an `nvarchar(max)` column in the `Production.Document` table, by using the `.WRITE` clause. The word `components` is replaced by the word `features` by specifying the replacement word, the beginning location (offset) of the word to be replaced in the existing data, and the number of characters to be replaced (length). The example uses the `OUTPUT` clause to return the before and after images of the `DocumentSummary` column to the `@MyTableVar` `table` variable. Note that the full before and after images of the `DocumentSummary` column are returned.
490490

491491
```sql
492492
USE AdventureWorks2012;
@@ -598,7 +598,7 @@ GO
598598
```
599599

600600
### J. Using OUTPUT and OUTPUT INTO in a single statement
601-
The following example deletes rows in the `ProductProductPhoto` table based on search criteria defined in the `FROM` clause of `DELETE` statement. The `OUTPUT INTO` clause returns columns from the table being deleted (`deleted.ProductID`, `deleted.ProductPhotoID`) and columns from the `Product` table to the `@MyTableVar``table` variable. The `Product` table is used in the `FROM` clause to specify the rows to delete. The `OUTPUT` clause returns the `deleted.ProductID`, `deleted.ProductPhotoID` columns and the date and time the row was deleted from the `ProductProductPhoto` table to the calling application.
601+
The following example deletes rows in the `ProductProductPhoto` table based on search criteria defined in the `FROM` clause of `DELETE` statement. The `OUTPUT INTO` clause returns columns from the table being deleted (`deleted.ProductID`, `deleted.ProductPhotoID`) and columns from the `Product` table to the `@MyTableVar` `table` variable. The `Product` table is used in the `FROM` clause to specify the rows to delete. The `OUTPUT` clause returns the `deleted.ProductID`, `deleted.ProductPhotoID` columns and the date and time the row was deleted from the `ProductProductPhoto` table to the calling application.
602602

603603
```sql
604604
USE AdventureWorks2012;

0 commit comments

Comments
 (0)