Skip to content

Commit eb99210

Browse files
committed
updates for formatting
1 parent e35e71d commit eb99210

2 files changed

Lines changed: 24 additions & 15 deletions

File tree

‎docs/t-sql/queries/update-transact-sql.md‎

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "UPDATE (Transact-SQL) | Microsoft Docs"
33
ms.custom: ""
4-
ms.date: "11/27/2019"
4+
ms.date: "05/19/2020"
55
ms.prod: sql
66
ms.prod_service: "database-engine, sql-database, sql-data-warehouse, pdw"
77
ms.reviewer: ""
@@ -48,7 +48,7 @@ monikerRange: ">=aps-pdw-2016||=azuresqldb-current||=azure-sqldw-latest||>=sql-s
4848

4949
## Syntax
5050

51-
```
51+
```syntaxsql
5252
-- Syntax for SQL Server and Azure SQL Database
5353
5454
[ WITH <common_table_expression> [...n] ]
@@ -97,7 +97,7 @@ UPDATE
9797
table_or_view_name}
9898
```
9999

100-
```
100+
```syntaxsql
101101
-- Syntax for Azure Synapse Analysis (formerly SQL Data Warehouse)
102102
103103
[ WITH <common_table_expression> [ ,...n ] ]
@@ -118,8 +118,9 @@ ON <join_condition>
118118
}
119119
```
120120

121-
```
122-
-- Syntax for Parallel Data Warehouse
121+
```syntaxsql
122+
-- Syntax for Parallel Data Warehouse
123+
123124
UPDATE [ database_name . [ schema_name ] . | schema_name . ] table_name
124125
SET { column_name = { expression | NULL } } [ ,...n ]
125126
[ FROM from_clause ]
@@ -1153,7 +1154,7 @@ SELECT * FROM YearlyTotalSales;
11531154
### AH. ANSI join for update statements
11541155
This example shows how to update data based on the result from joining another table.
11551156

1156-
```
1157+
```sql
11571158
CREATE TABLE dbo.Table1
11581159
(ColA int NOT NULL, ColB decimal(10,3) NOT NULL);
11591160
GO

‎docs/t-sql/statements/delete-transact-sql.md‎

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "DELETE (Transact-SQL) | Microsoft Docs"
33
ms.custom: ""
4-
ms.date: "12/30/2019"
4+
ms.date: "05/19/2020"
55
ms.prod: sql
66
ms.reviewer: ""
77
ms.technology: t-sql
@@ -36,7 +36,7 @@ monikerRange: ">=aps-pdw-2016||=azuresqldb-current||=azure-sqldw-latest||>=sql-s
3636

3737
## Syntax
3838

39-
```
39+
```syntaxsql
4040
-- Syntax for SQL Server and Azure SQL Database
4141
4242
[ WITH <common_table_expression> [ ,...n ] ]
@@ -73,8 +73,9 @@ DELETE
7373
}
7474
```
7575

76-
```
76+
```syntaxsql
7777
-- Syntax for Azure Synapse Analytics (formerly SQL Data Warehouse)
78+
7879
[ WITH <common_table_expression> [ ,...n ] ]
7980
DELETE [database_name . [ schema ] . | schema. ] table_name
8081
FROM [database_name . [ schema ] . | schema. ] table_name
@@ -92,7 +93,7 @@ ON <join_condition>
9293
}
9394
```
9495

95-
```
96+
```syntaxsql
9697
-- Syntax for Parallel Data Warehouse
9798
9899
DELETE
@@ -453,15 +454,17 @@ GO
453454
DELETE FROM Table1;
454455
```
455456
456-
### L. DELETE a set of rows from a table
457+
### L. DELETE a set of rows from a table
458+
457459
The following example deletes all rows from the `Table1` table that have a value greater than 1000.00 in the `StandardCost` column.
458460
459461
```sql
460462
DELETE FROM Table1
461463
WHERE StandardCost > 1000.00;
462464
```
463465
464-
### M. Using LABEL with a DELETE statement
466+
### M. Using LABEL with a DELETE statement
467+
465468
The following example uses a label with the DELETE statement.
466469
467470
```sql
@@ -470,7 +473,8 @@ OPTION ( LABEL = N'label1' );
470473
471474
```
472475
473-
### N. Using a label and a query hint with the DELETE statement
476+
### N. Using a label and a query hint with the DELETE statement
477+
474478
This query shows the basic syntax for using a query join hint with the DELETE statement. For more information on join hints and how to use the OPTION clause, see [OPTION Clause (Transact-SQL)](../queries/option-clause-transact-sql.md).
475479
476480
```sql
@@ -496,8 +500,10 @@ SELECT TOP 1 1 FROM tableB tb WHERE tb.col1 = tableA.col1
496500
```
497501
498502
### P. Delete based on the result of joining with another table
503+
499504
This example shows how to delete from a table based on the result from joining wiht another table.
500-
```
505+
506+
```sql
501507
CREATE TABLE dbo.Table1
502508
(ColA int NOT NULL, ColB decimal(10,3) NOT NULL);
503509
GO
@@ -515,7 +521,9 @@ FROM dbo.Table2
515521
ON (dbo.Table2.ColA = dbo.Table1.ColA)
516522
WHERE dboTable2.ColA = 1;
517523
```
518-
## See Also
524+
525+
## See Also
526+
519527
[CREATE TRIGGER &#40;Transact-SQL&#41;](../../t-sql/statements/create-trigger-transact-sql.md)
520528
[INSERT &#40;Transact-SQL&#41;](../../t-sql/statements/insert-transact-sql.md)
521529
[SELECT &#40;Transact-SQL&#41;](../../t-sql/queries/select-transact-sql.md)

0 commit comments

Comments
 (0)