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 <strong>for</strong> MySQL 4 LIBNAME Statement Data Conversions 617Date, Time, and Timestamp DataDATEcontains date values. Valid dates are from January 1, 1000, to December 31, 9999.The default <strong>for</strong>mat is YYYY-MM-DD—<strong>for</strong> example, 1961-06-13.DATETIMEcontains date and time values. Valid values are from 00:00:00 on January 1, 1000,to 23:59:59 on December 31, 9999. The default <strong>for</strong>mat is YYYY-MM-DDHH:MM:SS—<strong>for</strong> example, 1992-09-20 18:20:27.TIMEcontains time values. Valid times are –838 hours, 59 minutes, 59 seconds to 838hours, 59 minutes, 59 seconds. The default <strong>for</strong>mat is HH:MM:SS—<strong>for</strong> example,12:17:23.TIMESTAMPcontains date and time values used to mark data operations. Valid values are from00:00:00 on January 1, 1970, to 2037. The default <strong>for</strong>mat is YYYY-MM-DDHH:MM:SS—<strong>for</strong> example, 1995–08–09 15:12:27.LIBNAME Statement Data ConversionsThis table shows the default <strong>for</strong>mats that <strong>SAS</strong>/<strong>ACCESS</strong> Interface to MySQL assignsto <strong>SAS</strong> variables when using the LIBNAME statement to read from a MySQL table.These default <strong>for</strong>mats are based on MySQL column attributes.Table 21.3LIBNAME Statement: Default <strong>SAS</strong> Formats <strong>for</strong> MySQL Data TypesMySQL Column Type <strong>SAS</strong> Data Type Default <strong>SAS</strong> FormatCHAR(n ) character $n.VARCHAR(n ) character $n.TINYTEXT character $n.TEXT character $n. (where n is the value of theDBMAX_TEXT= option)MEDIUMTEXT character $n. (where n is the value of theDBMAX_TEXT= option)LONGTEXT character $n. (where n is the value of theDBMAX_TEXT= option)TINYBLOB character $n. (where n is the value of theDBMAX_TEXT= option)BLOB character $n. (where n is the value of theDBMAX_TEXT= option)MEDIUMBLOB character $n. (where n is the value of theDBMAX_TEXT= option)LONGBLOB character $n. (where n is the value of theDBMAX_TEXT= option)ENUM character $n.

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

Saved successfully!

Ooh no, something went wrong!