1.0

Table Of Contents
java.lang.Integer.MAX_VALUE (2147483647 )Maximum length
1Default length
java.sql.Types.CHARJDBC metadata type
ResultSet.getString, PreparedStatement.setStringJDBC methods
System.StringEquivalent .NET type
Vmware.Data.SQLFire.SQLFType.CharADO.NET metadata type
StringFixedLengthADO.NET mapped System.Data.Dbtype
DbDataReader.GetStringADO.NET getter
Syntax in CREATE TABLE
CHAR[ACTER] [(length)]
CHAR FOR BIT DATA
Provides for xed-length byte strings. This is used when CHAR type is not appropriate due to unstructured data
or otherwise. If a value is shorter than the expected length, then it is padded with 0x20 byte values. No padding
is performed for comparisons between CHAR FOR BIT DATA and VARCHAR FOR BIT DATA types as per
SQL-92 standard (this is different from the way some DBMSs behave). An operation involving a VARCHAR
FOR BIT DATA and CHAR FOR BIT DATA yields a value of type VARCHAR FOR BIT DATA.
The length is an unsigned integer constant for the length of value in bytes.
use byte[], java.io.InputStream, or java.lang.OutputStream as requiredEquivalent Java type
254 bytesMaximum length
1Default length
java.sql.Types.BINARYJDBC metadata type
ResultSet.getBytes, PreparedStatement.setBytesJDBC methods
use byte[] where requiredEquivalent .NET type
Vmware.Data.SQLFire.SQLFType.BinaryADO.NET metadata type
BinaryADO.NET mapped System.Data.Dbtype
DbDataReader.GetBytesADO.NET getter
Syntax in CREATE TABLE
{ CHAR | CHARACTER }[(length)] FOR BIT DATA
CLOB
A character large object represents an array of characters of varying length. It is used to store large character-based
data such as documents.
The length of the CLOB is expressed in number of characters by default. The sufxes K, M, G stand for kilo,
mega and giga respectively.
java.sql.ClobEquivalent Java type
java.lang.Integer.MAX_VALUE (2147483647 )Maximum length
575
SQL Language Reference