欢迎投稿

今日深度:

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

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


访问照片表

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;

commit;

select * from temp2;

 

 


对于Oracle中的BLOB字段的问题

要取BLOB里面的值 必须要用到oracle里面的程序包DBMS_LOB
具体怎么实现 网上有 搜索一下就行了
1 自己先写一个存储过程
2 定义CLOB变量 用来接受BLOB的值
3 输出CLOB变量的值
步骤大致就是这样的 希望对你有帮助
 

oracle中添加blob字段

可以加的啊,语法没有错误,我在我这里测试都可以:
SQL> ALTER TABLE a ADD memo BLOB;

Table altered

SQL> ALTER TABLE a ADD memo2 cLOB;

Table altered

SQL> ALTER TABLE a ADD memo3 long;

Table altered

SQL> ALTER TABLE a ADD memo4 BLOB;

Table altered
 

www.htsjk.Com true http://www.htsjk.com/shujukunews/3021.html NewsArticle 访问oracle数据链路的blob字段值,oracleblob 访问照片表 select * from zp@dblink1 where a1='11111'; 会报错:ora-22992 无法使用从远程表选择的LOB定位器 改为以下方法: 方法一: drop table temp Create t...
评论暂时关闭