如题!
请问谁有更新远程数据库clob字段的方法?

解决方案 »

  1.   

    CLOB在操作时其实等于varchar2, 例如: 
    create table test(
      a clob
    )那么insert时只需要:
    insert test(a) values('fjdjfjdjfieghnvnvnvnv')和varchar2一样的用~
      

  2.   

    写clob字段的方法:
    如:test表有id、content两个字段,类型分别为number、clob。先将clob字段附EMPTY_CLOB()
    insert into test(id,content) values(1,EMPTY_CLOB());
    然后再获取clob字段的游标
    select content into content_values from test where id=1;将值附给content_values
    content_values := 实际的clob内容;再update表中的clob字段
    update test set content=content_values where id=1
      

  3.   

    终于在网上找到个更好的同步更新的方法
    参考:http://www.wwf.co.itpub.net/post/5073/25388
    使用物化视图,可以定时自动更新数据库内容,以达到同步更新的目的(当然,总有点延时,但对于一般应用已经足够)