我原先定义的是long 型,现在删除所有数据,更改成 clob 系统提示我更改无效

解决方案 »

  1.   

    怎样在 jsp 页面里执行插入语句,可以添加  clob 字段数据
      

  2.   

    SQL> desc test2
     名称                                                  空?      类型
     ----------------------------------------------------- -------- ------------------------------------
     A                                                              LONG
     B                                                              CLOBSQL> create table test3(a clob,b varchar2(10));表已创建。SQL> desc test3
     名称                                                  空?      类型
     ----------------------------------------------------- -------- ------------------------------------
     A                                                              CLOB
     B                                                              VARCHAR2(10)SQL> insert into test3(a,b) select to_lob(a),b from test2;已创建 1 行。SQL> select * from test3;A              B
    -------------- ----------
    sajsdasd       test2已选择 1 行。SQL> drop table test2;表已丢弃。SQL> rename test3 to test2;表已重命名。SQL> desc test2;
     名称                                                  空?      类型
     ----------------------------------------------------- -------- ------------------------------------
     A                                                              CLOB
     B                                                              VARCHAR2(10)SQL> select * from test2;A              B
    -------------- ----------
    sajsdasd       test2已选择 1 行。
      

  3.   

    当然是CLOB了,在9I中最大可存储4GB。