Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Sshashank0743 authored Sep 27, 2022
1 parent c3c7f57 commit 13110e9
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions DELETE/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
## Deleting rows

When you need to delete data from a table in the database, you can use a DELETE statement, which describes the table to act on, and the rows of the table to delete through the WHERE clause.

``` SQL
Delete statement with condition
DELETE FROM mytable
WHERE condition;

```

If you decide to leave out the WHERE constraint, then all rows are removed, which is a quick and easy way to clear out a table completely (if intentional).



| Id | Title | Director | Year | Length_minutes |
| ------------- | ------------- | ------------- | ------------- | ------------- |
| 1 |Toy Story | John Lasseter | 1995 | 81
Expand Down

0 comments on commit 13110e9

Please sign in to comment.