`

mysql 日期与时间类型

 
阅读更多
类型名称      日期格式                日期范围                        存储需求

year        yyyy                1901~2155                  1个字节 

time        hh:mm:ss           -838:59:59~838:59:59        3个字节

date        yyyy-mm-dd         1000-01-01~9999-12-3        3个字节

datetime    yyyy-mm-dd hh:mm:ss  1000-01-01 00:00:00~9999-12-31

timestamp   yyyy-mm-dd hh:mm:ss    UTC
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics