忘了说了,数据库是oracle 9i的。

解决方案 »

  1.   

    谢谢~改用Clob之后相应的SQL语句用不用做改动?
      

  2.   

    我在管理器里面将NVARCHAR2改成NCLOB出错,提示是ORA-22858:invalid alteration of datatype。请问这怎么回事?
      

  3.   

    告诉你一个简单的方法:多定义几个NVARCHAR2字段,分开保存。
      

  4.   

    NVARCHAR2
    UNICODE变长字符串,pl/sql类型,最大宽度为32767bytes,但作为字段的类型,最大宽度为2000bytes
    ----------------------------------------------------------------
    可以建一个NCLOB字段
    从原来的NVARCHAR2字段中select 出数据,再insert到新的字段中。
      

  5.   

    定义多个VARCHAR2字段?那数据操作不是很麻烦?
    是不是发布文章的时候先在程序上面把它分成几段然后再插入到几个字段里?然后读取的时候再一起select出来?
      

  6.   

    nvchar2的数据设置成长度2000,可以保存2000个汉字的。但是英文也是2000个。比如“汉ab”占3个字。
      

  7.   

    一般都用CBLOB存的。A CLOB (character large object) value can be up to two giga-characters long. A CLOB is used to store unicode character-based data, such as large documents in any character set.The length is given in number characters for both CLOB, unless one of the suffixes K, M, or G is given, relating to the multiples of 1024, 1024*1024, 1024*1024*1024 respectively.Length is specified in characters (unicode) for CLOB.