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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>SAS</strong>/<strong>ACCESS</strong> Interface to Netezza 4 Date, Time, and Timestamp Data 649String DataCHAR(n), NCHAR(n)specifies a fixed-length column <strong>for</strong> character string data. The maximum length is32,768 characters. NCHAR data is stored as UTF-8 in the Netezza database.VARCHAR(n), NVARCHAR(n)specifies a varying-length column <strong>for</strong> character string data. The maximum lengthis 32,768 characters. NVARCHAR data is stored as UTF-8 in the Netezza database.Numeric DataBIGINTspecifies a big integer. Values in a column of this type can range from–9223372036854775808 to +9223372036854775807.SMALLINTspecifies a small integer. Values in a column of this type can range from –32768through +32767.INTEGERspecifies a large integer. Values in a column of this type can range from–2147483648 through +2147483647.BYTEINTspecifies a tiny integer. Values in a column of this type can range from –128 to+127.DOUBLE | DOUBLE PRECISIONspecifies a floating-point number that is 64 bits long. Values in a column of thistype can range from –1.79769E+308 to –2.225E-307 or +2.225E-307 to+1.79769E+308, or they can be 0. This data type is stored the same way that <strong>SAS</strong>stores its numeric data type. There<strong>for</strong>e, numeric columns of this type require theleast processing when <strong>SAS</strong> accesses them.REALspecifies a floating-point number that is 32 bits long. Values in a column of thistype can range from approximately –3.4E38 to –1.17E-38 and +1.17E-38 to+3.4E38.DECIMAL | DEC | NUMERIC | NUMspecifies a fixed-point decimal number. The precision and scale of the numberdetermines the position of the decimal point. The numbers to the right of thedecimal point are the scale, and the scale cannot be negative or greater than theprecision. The maximum precision is 38 digits.Date, Time, and Timestamp DataSQL date and time data types are collectively called datetime values. The SQL datatypes <strong>for</strong> dates, times, and timestamps are listed here. Be aware that columns of thesedata types can contain data values that are out of range <strong>for</strong> <strong>SAS</strong>.

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

Saved successfully!

Ooh no, something went wrong!