SQL Data Types
SQL Data Types
Data types and ranges for Microsoft Access, MySQL and SQL Server.
Text types:
Note: The values are sorted in the order you enter them.
Number types:
Date types:
Note: Values allowed in four-digit format: 1901 to 2155. Values allowed in two-
digit format: 70 to 69, representing years from 1970 to 2069
*Even if DATETIME and TIMESTAMP return the same format, they work very differently. In an INSERT
or UPDATE query, the TIMESTAMP automatically set itself to the current date and time. TIMESTAMP
also accepts various formats, like YYYYMMDDHHMMSS, YYMMDDHHMMSS, YYYYMMDD, or YYMMDD.
Unicode strings:
Binary types:
Number types:
Date types: