现在的位置: 首页 > 综合 > 正文

oracle merge

2013年10月03日 ⁄ 综合 ⁄ 共 266字 ⁄ 字号 评论关闭

oracel merge用法,只贴图不说话

 

merge into  a

using (select i.custid, i.contphonecountry, i.contphonecitycode,i.contphone

         from  i) b

on (a.custid = b.custid)

when matched then

  update

     set a.contphone = b.contphonecountry || ' ' || b.contphonecitycode || ' ' ||b.contphone

   where a.contphone is not null;

【上篇】
【下篇】

抱歉!评论已关闭.