Oracle SQL:用另一個表中的數據更新一個表 - Oracle SQL: Update a table with data from another table

問題:

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 的namedesc更新表 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
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章