Tuesday, December 13, 2005

Data Type In MySQL

11.1. Data Type Overview 11.1.1. Overview of Numeric Types 11.1.2. Overview of Date and Time Types 11.1.3. Overview of String Types 11.2. Numeric Types 11.3. Date and Time Types 11.3.1. The DATETIME, DATE, and TIMESTAMP Types 11.3.2. The TIME Type 11.3.3. The YEAR Type 11.3.4. Y2K Issues and Date Types 11.4. String Types 11.4.1. The CHAR and VARCHAR Types 11.4.2. The BINARY and VARBINARY Types 11.4.3. The BLOB and TEXT Types 11.4.4. The ENUM Type 11.4.5. The SET Type 11.5. Data Type Storage Requirements 11.6. Choosing the Right Type for a Column 11.7. Using Data Types from Other Database Engines MySQL supports a number of data types in several categories: numeric types, date and time types, and string (character) types. This chapter first gives an overview of these data types, and then provides a more detailed description of the properties of the types in each category, and a summary of the data type storage requirements. The overview is intentionally brief. The more detailed descriptions should be consulted for additional information about particular data types, such as the allowable formats in which you can specify values.