From f16c2a8afdae2d26b9d98d2dcf614b6f9048ae7b Mon Sep 17 00:00:00 2001 From: Sarkis Kovlekjian <83559262+kenshanta@users.noreply.github.com> Date: Fri, 30 Aug 2024 10:41:41 +0200 Subject: [PATCH] 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 --- .../content/update@eu9dJFi6gBPMBdy08Y5Bb.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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)