加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

Oracle通过DBLink操作数据表,报错“ORA-22992:无法使用从远程表

发布时间:2020-12-12 14:19:01 所属栏目:百科 来源:网络整理
导读:---1、在本地创建包含blob的临时表 create global temporary table temp1 (a varchar2(20),x BLOB) on commit delete rows ---2、在本地创建目标临时表 CREATE TABLE TEMP2 AS select * from temp1 where 1=2 ---3、将远程表的数据插入到临时表中 INSERT INTO
---1、在本地创建包含blob的临时表 create global temporary table temp1 (a varchar2(20),x BLOB) on commit delete rows ---2、在本地创建目标临时表 CREATE TABLE TEMP2 AS select * from temp1 where 1=2 ---3、将远程表的数据插入到临时表中 INSERT INTO temp1 select smt_salaryno,smt_photo from ecard.photo@lk_ykt ---千万不要comit,不然temp1表的数据会变清空 --4、将临时表中的数据插入到目标临时表 INSERT INTO TEMP2 select * from temp1 --5、针对包含blob表去重的方法 insert into jw_jg_jzgzpb select a,x from ( select a,x,row_number() over(partition by a order by a) px from yhb a,TEMP2 b where yhlx='teacher' and a.yhm=b.a and a in ( SELECT distinct a FROM TEMP2 group by a having count(*)>1 ) ) where px=1

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读