:: DEVELOPER ZONE
Table of Contents
MySQL supports a number of column types in several categories: numeric types, date and time types, and string (character) types. This chapter first gives an overview of these column types, and then provides a more detailed description of the properties of the types in each category, and a summary of the column type storage requirements. The overview is intentionally brief. The more detailed descriptions should be consulted for additional information about particular column types, such as the allowable formats in which you can specify values.
MySQL versions 4.1 and up support extensions for handing spatial data. Information about spatial types is provided in Chapter 18, Spatial Extensions in MySQL.
Several of the column type descriptions use these conventions:
M
Indicates the maximum display width. The maximum legal display width is 255.
D
Applies to floating-point and fixed-point types and indicates the
number of digits following the decimal point. The maximum possible
value is 30, but should be no greater than
M-2.
Square brackets ('[' and ']')
indicate parts of type specifiers that are optional.
© 1995-2005 MySQL AB. All rights reserved.

User Comments
Warning: query failed: Unknown column 'user.firstname' in 'field list' in /data0/sites/live/web-main/lib/mysql-cxn.php on line 69
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /data0/sites/live/web-main/lib/docbook.php on line 245
Add your own comment.