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.

586 Numeric Data 4 Chapter 19Numeric DataDECIMAL, MONEY, NUMERICcontains numeric data with definable scale and precision. The amount of storagethat is allocated depends on the size of the number.FLOAT, DOUBLE PRECISIONcontains double-precision numeric data up to 8 bytes.INTEGERcontains an integer up to 32 bits (from –2 31 to 2 31 −1).REAL, SMALLFLOATcontains single-precision, floating-point numbers up to 4 bytes.SERIALstores sequential integers up to 32 bits.SMALLINTcontains integers up to 2 bytes.INT8contains an integer up to 64 bits (–2 (63–1) to 2 (63–1) ).SERIAL8contains sequential integers up to 64 bits.When the length value of INT8 or SERIAL8 is greater than 15, the last few digitscurrently do not display correctly due to a display limitation.Date, Time, and Interval DataDATEcontains a calendar date in the <strong>for</strong>m of a signed integer value.DATETIMEcontains a calendar date and time of day stored in 2 to 11 bytes, depending onprecision.When the DATETIME column is in an uncommon <strong>for</strong>mat (<strong>for</strong> example,DATETIME MINUTE TO MINUTE or DATETIME SECOND TO SECOND), thedate and time values might not display correctly.INTERVALcontains a span of time stored in 2 to 12 bytes, depending on precision.In<strong>for</strong>mix Null ValuesIn<strong>for</strong>mix has a special value that is called NULL. An In<strong>for</strong>mix NULL value meansan absence of in<strong>for</strong>mation and is analogous to a <strong>SAS</strong> missing value. When<strong>SAS</strong>/<strong>ACCESS</strong> reads an In<strong>for</strong>mix NULL value, it interprets it as a <strong>SAS</strong> missing value.If you do not indicate a default value <strong>for</strong> an In<strong>for</strong>mix column, the default value isNULL. You can specify the keywords NOT NULL after the data type of the column whenyou create an In<strong>for</strong>mix table to prevent NULL values from being stored in the column.When creating an In<strong>for</strong>mix table with <strong>SAS</strong>/<strong>ACCESS</strong>, you can use the DBNULL= dataset option to indicate whether NULL is a valid value <strong>for</strong> specified columns.For more in<strong>for</strong>mation about how <strong>SAS</strong> handles NULL values, see “Potential ResultSet Differences When Processing Null Data” on page 31.

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

Saved successfully!

Ooh no, something went wrong!