You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit eb99210
Browse filesBrowse the repository at this point in the historyBrowse files
The following example deletes all rows from the `Table1` table that have a value greater than 1000.00 in the `StandardCost` column.
458
460
459
461
```sql
460
462
DELETE FROM Table1
461
463
WHERE StandardCost > 1000.00;
462
464
```
463
465
464
-
### M. Using LABEL with a DELETE statement
466
+
### M. Using LABEL with a DELETE statement
467
+
465
468
The following example uses a label with the DELETE statement.
466
469
467
470
```sql
@@ -470,7 +473,8 @@ OPTION ( LABEL = N'label1' );
470
473
471
474
```
472
475
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
+
474
478
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).
475
479
476
480
```sql
@@ -496,8 +500,10 @@ SELECT TOP 1 1 FROM tableB tb WHERE tb.col1 = tableA.col1
496
500
```
497
501
498
502
### P. Delete based on the result of joining with another table
503
+
499
504
This example shows how to delete from a table based on the result from joining wiht another table.
0 commit comments