mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2025-09-03 06:12:53 +02:00
Update SQL Roadmap UPDATE Statement Node. (#6784)
* Fill update node with info Add relevant info. Any new proposals welcome * remove emoji and code formatting as suggested in PR review
This commit is contained in:
committed by
GitHub
parent
5c2cc7a6da
commit
f16c2a8afd
@@ -0,0 +1,18 @@
|
||||
# UPDATE
|
||||
|
||||
The `UPDATE` statement is used to modify existing data in a given table. <br/>
|
||||
It can be done so with the query
|
||||
|
||||
```
|
||||
UPDATE table_name
|
||||
SET column1 = value1, column2 = value2, ...
|
||||
WHERE condition;
|
||||
```
|
||||
|
||||
- _Keep in mind that **SET** and **WHERE** are also commands to assign a new value(SET) only if the condition is met(WHERE)_
|
||||
|
||||
Omitting the `WHERE` clause will update **all** rows in the table.
|
||||
|
||||
Visit the following resources to learn more:
|
||||
|
||||
- [@article@W3Schools SQL UPDATE Statement Doc](https://www.w3schools.com/sql/sql_update.asp)
|
||||
|
Reference in New Issue
Block a user