問題:
Table 1:表格1:
id name desc
-----------------------
1 a abc
2 b def
3 c adf
Table 2:表 2:
id name desc
-----------------------
1 x 123
2 y 345
In oracle SQL, how do I run an sql update query that can update Table 1 with Table 2's name
and desc
using the same id
?在 oracle SQL 中,如何運行可以使用相同id
使用表 2 的name
和desc
更新表 1 的sql 更新查詢? So the end result I would get is所以我得到的最終結果是
Table 1:表格1:
id name desc
-----------------------
1 x 123
2 y 345
3 c adf
Question is taken from update one table with data from another , but specifically for oracle SQL.問題來自用另一個表更新一個表,但專門針對 oracle SQL。
解決方案:
參考一: https://en.stackoom.com/question/TV0N參考二: https://stackoom.com/question/TV0N