diff --git a/src/data/roadmaps/sql/content/update@eu9dJFi6gBPMBdy08Y5Bb.md b/src/data/roadmaps/sql/content/update@eu9dJFi6gBPMBdy08Y5Bb.md index e69de29bb..e80c5b7e9 100644 --- a/src/data/roadmaps/sql/content/update@eu9dJFi6gBPMBdy08Y5Bb.md +++ b/src/data/roadmaps/sql/content/update@eu9dJFi6gBPMBdy08Y5Bb.md @@ -0,0 +1,18 @@ +# UPDATE + +The `UPDATE` statement is used to modify existing data in a given table.
+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)