SongZip大虾:
我用selectblob做过了,提示错误信息,不能显示信息。
我用selectblob做过了,提示错误信息,不能显示信息。
解决方案 »
- 如何删除oracle中的其中一个数据库
- 急!!如何查看上一个版本的视图信息?
- order by 里,我要让领导永远排第一该怎么办?
- 关于 ADO访问oracle系统的存储过程中临时表返回的结果集?
- 请教个SQL语句,谢谢
- 请问关于全角汉字中过滤掉拳脚符号的问题
- 如何用SQL文查找表中某个字段的最大位数(建表时该字段的长度)
- start with ....connect by语句中怎样对子结点排序??
- 数据导入问题?在线等!请帮个忙!
- 求救 jdbc连接oracle数据库 报罕见错误 网上找不到答案
- 请问如何调用一个自定函数?谢谢!
- 大侠救我!linux下装oracle920的时候报这个错误,安装窗口中的字符是乱码!
这是一个例子:
grant create any directory to scott;
grant create any library to scott;
create or replace directory utllobdir as 'G:\oracle';
create table bfile_tab (bfile_column BFILE);
create table utl_lob_test (blob_column BLOB);set serveroutput on然后执行下面语句就将G:\oracle目录下的Azul.jpg存入到utl_lob_test
表中的blob_column字段中了。
declare
a_blob BLOB;
a_bfile BFILE := BFILENAME('UTLLOBDIR','Azul.jpg');
begin
insert into bfile_tab values (a_bfile)
returning bfile_column into a_bfile;
insert into utl_lob_test values (empty_blob())
returning blob_column into a_blob;
dbms_lob.fileopen(a_bfile);
dbms_lob.loadfromfile(a_blob, a_bfile, dbms_lob.getlength(a_bfile));
dbms_lob.fileclose(a_bfile);
commit;
end;
/
select dbms_lob.getlength(blob_column) from UTL_LOB_TEST;