日期:2014-05-17  浏览次数:20846 次

到底怎么才能把长文本插入blob类型的数据。。。
update blob_table
set blob_cl=to_blob('110010000110011')
where id=1;

update blob_table
set blob_cl='110010000110011'
where id=1;

UPDATE 表 SET CLOB字段=BFILENAME('', '') WHERE 主键=1

试过了 都不管用。。。

------解决方案--------------------
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
PL/SQL Release 10.2.0.1.0 - Production
CORE    10.2.0.1.0      Production
TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
NLSRTL Version 10.2.0.1.0 - Production

SQL> create table blob_table(id int,bb blob);

表已创建。

SQL> insert into blob_table values(1,to_blob('aaaaa'));

已创建 1 行。

SQL> update blob_table set bb=to_blob('bbbbbbb') where id=1;

已更新 1 行。
SQL> commit;

提交完成。