Company
Real 24/7 Support

Our techs are ALWAYS here! When you have an issue we are here to solve it immediately - 24 hours a day and 7 days a week. We are here for you!

Domain Registration
  

Register a .com, .net, .org, .biz, .info, or .us domain name for just $12.95/yr! Retain full control and full ownership via your account at NexusDomains.

phpMyAdmin Tutorials

MySQL Field Types

MySQL supports a number of column types, which may be grouped into three categories: numeric types, date and time types, and string (character) types. This section first gives an overview of the types available. Please refer to the MySQL manuals for more details.

While phpMyAdmin provides a dropdown menu to select the information below, this is useful for writing SQL code.

Text Types

Number Types

Date Types

DATE
YYYY-MM-DD
DATETIME
YYYY-MM-DD HH:MM:SS
TIMESTAMP
YYYYMMDDHHMMSS
TIME
HH:MM:SS
YEAR
4-digit year (YYYY)

Miscellaneous Types

Note: The ( ) brackets allow you to enter a maximum number of characters will be used in the column ex. VARCHAR(20). For double and decimal, there are two items allowed: length followed by the number of digits after the decimal point (significant digits) ex. double (10,3) would allow 10 digits and keep 3 numbers after the decimal point.