char(n) n=1 to 2000字节 定长字符串,n字节长,如果不指定长度,缺省为1个字节长(一个汉字为2字节) 
varchar2(n) n=1 to 4000字节 可变长的字符串,具体定义时指明最大长度n,
这种数据类型可以放数字、字母以及ASCII码字符集(或者EBCDIC等数据库系统接受的字符集标准)中的所有符号。
如果数据长度没有达到最大值n,Oracle 8i会根据数据大小自动调节字段长度,
如果你的数据前后有空格,Oracle 8i会自动将其删去。VARCHAR2是最常用的数据类型。

解决方案 »

  1.   

    SongZip: 能谈谈nchar和nvarchar吗?
      

  2.   

    NCHAR、NVARCHAR2,国家字符集,与环境变量NLS指定的语言集密切相关,使用方法和CHAR、VARCHAR2相同。
      

  3.   

    同样的问题,我在itpub上得到的回答,大家参考一下。只是看不太明白。The CREATE DATABASE statement has the CHARACTER SET clause and the
    additional optional clause NATIONAL CHARACTER SET to declare the character set
    to be used as the database character set and the national character set.Because the database character set is used to identify and to hold SQL and PL/SQL
    source code, it must have either EBCDIC or 7-bit ASCII as a subset, whichever is
    native to the platform. Therefore, it is not possible to use a fixed-width, multibyte
    character set as the database character set, only as the national character set.