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试过了 都不管用

解决方案 »

  1.   

    我刚才也试了一下,插入和更新时都没有问题,就是放在where条件中会出错。
      

  2.   

    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 - ProductionSQL> 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;提交完成。