oracle 用一个表的数据去更新另外一个表的数据
发布时间:2020-12-12 15:04:18 所属栏目:百科 来源:网络整理
导读:去掉 有重复数据的 情况 merge into acl_user p using (select * from testimportuser X where X.ROWID=(select max(Y.ROWID) from testimportuser Y where X.yhdm=Y.yhdm ) ) np on (p.yhdm=np.yhdm) when matched then update set p.sfzmhm=np.sfzhm when
去掉 有重复数据的 情况 merge into acl_user p using (select * from testimportuser X where X.ROWID=(select max(Y.ROWID) from testimportuser Y where X.yhdm=Y.yhdm ) ) np on (p.yhdm=np.yhdm) when matched then update set p.sfzmhm=np.sfzhm when not matched then insert(p.yhdm,p.xm,p.sfzmhm,p.cjsj)values(np.yhdm,np.xm,np.sfzhm,sysdate) (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- Oracle insert 导致hint DRIVING_SITE失效解决方案
- ruby-on-rails – Net :: ReadTimeout:Net :: ReadTimeout
- xml The processing instruction target matching "[xX
- ios – 界面生成器对象在我的故事板中不可见(标题是透明的)
- 创建自注册的Swift UI 控件
- 在xml文件里使用<fragment>报android.view.InflateExcept
- jboss7.x – beans.xml文件和java.lang.UnsupportedOperati
- Swift上传文件到PHP服务器
- ruby-on-rails-4 – rbenv安装不下载ruby版本
- VB课本总结