CHAR
Values of this datatype were variable length character strings of maximum length 255 characters. Oracle Version 6 compared CHAR values using non-padded comparison semantics.
Oracle Version 6 also supported these synonyms for the CHAR datatype:
CHAR
Values of this datatype are fixed length character strings of maximum length 255 characters. Oracle7 compares CHAR values using blank-padded comparison semantics. Note that the Oracle7 CHAR datatype is not equivalent to the Oracle Version 6 CHAR datatype.
VARCHAR2
Values of this datatype are variable length character strings of maximum length 2000. Oracle7 compares VARCHAR2 values using non-padded comparison semantics. The VARCHAR2 datatype is equivalent to the Oracle Version 6 CHAR datatype except for the difference in maximum lengths.
Attention: Oracle Version 6 only had the CHAR datatype available. In Version 6, VARCHAR and VARCHAR2 were synonyms for CHAR. Thus, the default datatype of character strings was CHAR. In Oracle7, the default character type is VARCHAR2.
Oracle7 also supports these synonyms for the CHAR and VARCHAR2 datatypes:
CHARACTER
VARCHAR
This datatype is currently synonymous with the VARCHAR2 datatype. However, Oracle Corporation recommends that you use VARCHAR2 rather than VARCHAR. In a future version of Oracle, VARCHAR may be a separate datatype used for variable length character strings compared with different comparison semantics.
For complete information on the Oracle7 datatypes, including the differences between blank-padded and non-padded comparison semantics, see the sections, "Character Datatypes," , and "Datatype Comparison Rules," .