首页 > 数据库技术 > 详细

访问oracle数据链路的blob字段值

时间:2014-09-02 21:25:31      阅读:345      评论:0      收藏:0      [点我收藏+]

访问照片表

select * from zp@dblink1 where a1=‘11111‘;

会报错:ora-22992 无法使用从远程表选择的LOB定位器

改为以下方法:

方法一:
 drop table temp
 Create  table temp as select * from zp@dblink1 where a1=‘002‘;
 select * from temp;

 方法二:

--创建表只需执行一次
Create global temporary table temp on commit delete rows as select * from zp@zhplink where 1=2;
Create table temp2 as select * from temp where 1=2;

--可以多次执行insert

insert into temp select * from zp@zhplink where gmsfhm=‘140502199102260519‘;
insert into temp2 select * from temp;

select * from temp2;

 

 

访问oracle数据链路的blob字段值

原文:http://blog.csdn.net/sxdtzhp/article/details/39011573

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!