13.07.2015 Views

SAS/ACCESS 9.2 for Relational Databases: Reference, Fourth Edition

SAS/ACCESS 9.2 for Relational Databases: Reference, Fourth Edition

SAS/ACCESS 9.2 for Relational Databases: Reference, Fourth Edition

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

478 String Data 4 Chapter 15to FOR BIT DATA character strings, BLOB strings are not associated with a codepage.CLOB (character large object)contains varying-length character string data with a length of up to 2 gigabytes. Itcan store large single-byte character set (SBCS) or mixed (SBCS and multibytecharacter set, or MBCS) character-based data, such as documents written with asingle character set. It there<strong>for</strong>e has an SBCS or mixed code page associated withit.String DataCHAR(n)specifies a fixed-length column <strong>for</strong> character string data. The maximum length is254 characters.VARCHAR(n)specifies a varying-length column <strong>for</strong> character string data. The maximum lengthof the string is 4000 characters. If the length is greater than 254, the column is along-string column. SQL imposes some restrictions on referencing long-stringcolumns. For more in<strong>for</strong>mation about these restrictions, see your IBMdocumentation.LONG VARCHARspecifies a varying-length column <strong>for</strong> character string data. The maximum lengthof a column of this type is 32700 characters. A LONG VARCHAR column cannotbe used in certain functions, subselects, search conditions, and so on. For morein<strong>for</strong>mation about these restrictions, see your IBM documentation.GRAPHIC(n)specifies a fixed-length column <strong>for</strong> graphic string data. n specifies the number ofdouble-byte characters and can range from 1 to 127. If n is not specified, thedefault length is 1.VARGRAPHIC(n)specifies a varying-length column <strong>for</strong> graphic string data. n specifies the numberof double-byte characters and can range from 1 to 2000.LONG VARGRAPHICspecifies a varying-length column <strong>for</strong> graphic-string data. n specifies the numberof double-byte characters and can range from 1 to 16350.Numeric DataBIGINTspecifies a big integer. Values in a column of this type can range from–9223372036854775808 to +9223372036854775807. However, numbers thatrequire decimal precision greater than 15 digits might be subject to rounding andconversion errors.SMALLINTspecifies a small integer. Values in a column of this type can range from –32768 to+32767.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!