look into  sql reference you will find nothing
you should use clob

解决方案 »

  1.   

    但是我用了clob以后,程序编译的时候发现,数据类型不正确的
      

  2.   

    用的什么语言开发的?这个和语言好像有一些关系……VB中间就可以,但是在VC中就有点麻烦的说
      

  3.   

    varchar2(1024)不就行了,因为varchar2也是有长度限制的,但它是动态占用空间的
      

  4.   

    varchar2最大只有200吧?是不是我记错了?
      

  5.   

    程序里不认clob类型,有可能是data provider的问题,你的data provider可能是
    Provider=MSDAORA.1,而微软的provider  for oracle 不支持CLOb类型,你可试试
    Provider=OraOLEDB.Oracle.1
      

  6.   

    blob 类型的长度是多少在oracle中?
      

  7.   

    CLOB
     A character large object containing single-byte characters. Both fixed-width and variable-width character sets are supported, both using the CHAR database character set. Maximum size is 4 gigabytes.
     
    BLOB
     A binary large object. Maximum size is 4 gigabytes.VARCHAR2(size) [BYTE | CHAR]
     Variable-length character string having maximum length size bytes or characters. Maximum size is 4000 bytes, and minimum is 1 byte or 1 character. You must specify size for VARCHAR2. 
    BYTE indicates that the column will have byte length semantics; CHAR indicates that the column will have character semantics.
      

  8.   

    varchar2(n) 类型定义的列,可以达到4000,使用SELECT语句查询clob        类型定义的列,可以达到4GB, 使用SELECT语句只能查询出该字段的定位符号(Locator),相当于C/C++中的指针,然后再使用定位符号即可查询出来。
    oracle安装后有相关的例子,微软的开发工具最后使用Oracle提供的0040技术。
      

  9.   

    对我还是建议用VARCHAR2 类,最大可达到4000,且可以用LIKE进行查询,如果是CLOB就不行,具体如何选择还是你自己决定吧!
      

  10.   

    但是现在的问题不是这样的,如果能用varchar倒是好了,现在就必须用blob,向里面存储文件(如excel或者图片)