oracle怎样将?
最好能用pl/sql或者c完成,小弟这没有其他语言的编辑环境
存入的pl/sql如下:
create table demo
( id int primary key,
theBlob blob
)
/
create or replace directory my_files as 'd:\lobtmp';
declare
l_blob blob;
l_bfile bfile;
begin
insert into demo values ( 1, empty_blob() )
returning theBlob into l_blob;
l_bfile := ...全部
最好能用pl/sql或者c完成,小弟这没有其他语言的编辑环境
存入的pl/sql如下:
create table demo
( id int primary key,
theBlob blob
)
/
create or replace directory my_files as 'd:\lobtmp';
declare
l_blob blob;
l_bfile bfile;
begin
insert into demo values ( 1, empty_blob() )
returning theBlob into l_blob;
l_bfile := bfilename( 'MY_FILES', 'test。
zip' );
dbms_lob。fileopen( l_bfile );
dbms_lob。loadfromfile( l_blob, l_bfile,
dbms_lob。
getlength( l_bfile ) );
dbms_lob。fileclose( l_bfile );
end;
/ 。收起