From c3e8001e266dbdce97ad105ff2652416afa23c15 Mon Sep 17 00:00:00 2001 From: Vinobala <42375300+Vinothini10@users.noreply.github.com> Date: Fri, 2 Oct 2020 01:19:30 +0530 Subject: [PATCH] Update README.md Added update statement for updating from multiple tables --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 0d20bee..f27733d 100644 --- a/README.md +++ b/README.md @@ -120,6 +120,9 @@ Pull requests are welcome. Enjoy! * `UPDATE` table_name `SET` column1 = value1, column2 = value2 `WHERE` condition; * `UPDATE` table_name `SET` column_name = value; +### **Update** from Multiple Tables +* UPDATE table_name1 SET table_name1.col1= table2.col1 from table2 left join table3 on table2.id=table3.id where table2.name in (select name from table3) + ### **DELETE**: used to delete existing records/rows in a table * `DELETE FROM` table_name `WHERE` condition; * `DELETE` * `FROM` table_name;