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 Greenplum 4 Date, Time, and Timestamp Data 549SMALLINTspecifies a small integer. Values in a column of this type can range from –32768 to+32767.INTEGERspecifies a large integer. Values in a column of this type can range from–2147483648 to +2147483647.TINYINTspecifies a tiny integer. Values in a column of this type can range from 0 through255.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. It is the number of bits that are used in the mantissa of thesingle-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>.CAUTION:The following data types can contain data values that are out of range <strong>for</strong> <strong>SAS</strong>. 4DATEspecifies date values. The range is 01-01-0001 to 12-31-9999. The default <strong>for</strong>matYYYY-MM-DD. For 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. Due to theODBC-style interface that <strong>SAS</strong>/<strong>ACCESS</strong> Interface to Greenplum uses to

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

Saved successfully!

Ooh no, something went wrong!