excel怎么快速填充一列 求解oracle中用一個(gè)表的數(shù)據(jù)更新/插入另一個(gè)表的方法?
求解oracle中用一個(gè)表的數(shù)據(jù)更新/插入另一個(gè)表的方法?--將源表合并到目標(biāo)表合并到a使用Bon(a.id=B.id)--如果id相同匹配時(shí)更新集a.name=B.name--匹配時(shí)更新不匹配時(shí)插入
求解oracle中用一個(gè)表的數(shù)據(jù)更新/插入另一個(gè)表的方法?
--將源表合并到目標(biāo)表
合并到a
使用B
on(a.id=B.id)--如果id相同
匹配時(shí)更新集a.name=B.name--匹配時(shí)更新
不匹配時(shí)插入值(B.id,B.name)--源表有,目標(biāo)表沒有,insert
Oracle數(shù)據(jù)庫(kù)不更新from語句,這是SQL server里面的,不要想這個(gè),Oracle可以用另一種方式實(shí)現(xiàn)。我根據(jù)您的語句更改了更新tucondetailed a set a.latesprice=(從t中選擇b.amount),您可以試一試