oracle sql 数据库之间导入数据
1.導入別的表
?
insert into EMPI_IDENTIFY select id,empiid, name||':' ||idcardno,'accidcardno','' from empi_main where empi_state ='正常';
insert into EMPI_IDENTIFY
?select sys_guid(),empiid, name||':' ||tel,'acctel','' from empi_main where empi_state ='正常' and tel is not null;
?
2.
?delete
??? FROM empi_cross? where id in(
??? ?
???? SELECT id from (
???????? SELECT ROW_NUMBER()
???????????????? OVER(PARTITION BY t.linkempiid ORDER BY t.linkempiid) rn,????? ?
????????? t.*????? ?
????????? FROM empi_cross t
????????? )????? ?
???????????? WHERE rn = 2
??? )
?
?
轉載于:https://www.cnblogs.com/leolzi/p/10902471.html
與50位技術專家面對面20年技術見證,附贈技術全景圖總結
以上是生活随笔為你收集整理的oracle sql 数据库之间导入数据的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 蓝莓为什么是白心的?
- 下一篇: 如果每人每天吃大米400克一亿粒大米可以