Oracle 多表關(guān)聯(lián)如何更新多個字段
作者:佚名
以下的相關(guān)內(nèi)容就是對Oracle 多表關(guān)聯(lián)更新多個字段 帶條件的描述,希望會給你帶來一些幫助在此方面。以下是正文的介紹。
以下的文章主要介紹的是Oracle 多表關(guān)聯(lián)更新多個字段 帶條件的具體操作方法,如果你是Oracle 多表關(guān)聯(lián)更新多個字段 帶條件實(shí)際應(yīng)用方面的新手,你就可以通過以下的文章對Oracle 多表關(guān)聯(lián)更新多個字段 帶條件是如何正確使用的方法有一個更好的了解,以下就是文章的詳細(xì)內(nèi)容的介紹
Oracle 多表關(guān)聯(lián)更新多個字段 帶條件
- update student A
- set (A.name,a.dq) =
- (select B.bname,b.bdq
- from newstudent B
- where B.Bid = A.id
- and A.dq = 10
- )
- where exists (select 1
- from newstudent B
- where B.Bid = A.id
- and A.dq = 10
- );
上述的相關(guān)內(nèi)容就是對Oracle 多表關(guān)聯(lián)更新多個字段 帶條件以及相關(guān)圖案的描述,希望會給你帶來一些幫助在此方面。
【編輯推薦】
責(zé)任編輯:佚名
來源:
博客園