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.

<strong>SAS</strong>/<strong>ACCESS</strong> Interface to Sybase IQ 4 Date, Time, and Timestamp Data 777INTEGERspecifies a large integer. Values in a column of this type can range from–2147483648 through +2147483647.TINYINTspecifies a tiny integer. Values in a column of this type can range from 0 to 255.BITspecifies a Boolean type. Values in a column of this type can be either 0 or 1.Inserting any nonzero value into a BIT column stores a 1 in the column.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.FLOATspecifies a floating-point number. If you do not supply the precision, the FLOATdata type is the same as the REAL data type. If you supply the precision, theFLOAT data type is the same as the REAL or DOUBLE data type, depending onthe value of the precision. The cutoff between REAL and DOUBLE isplat<strong>for</strong>m-dependent, and it is the number of bits that are used in the mantissa ofthe single-precision floating-point number on the plat<strong>for</strong>m.DECIMAL | DEC | NUMERICspecifies 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 126 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>.DATEspecifies date values. The range is 01-01-0001 to 12-31-9999. The default <strong>for</strong>matYYYY-MM-DD—<strong>for</strong> example, 1961-06-13.TIMEspecifies time values in hours, minutes, and seconds to six decimal positions:hh:mm:ss[.nnnnnn]. The range is 00:00:00.000000 to 23:59:59.999999. However,due to the ODBC-style interface that <strong>SAS</strong>/<strong>ACCESS</strong> Interface to Sybase IQ uses tocommunicate with the Sybase IQ Per<strong>for</strong>mance Server, any fractional seconds arelost in the transfer of data from server to client.TIMESTAMPcombines a date and time in the default <strong>for</strong>mat of yyyy-mm-dd hh:mm:ss[.nnnnnn].For example, a timestamp <strong>for</strong> precisely 2:25 p.m. on January 25, 1991, would be1991-01-25-14.25.00.000000. Values in a column of this type have the same rangesas described <strong>for</strong> DATE and TIME.

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

Saved successfully!

Ooh no, something went wrong!