Mysql the date, datetime, time, timestamp type

date "1000-01-01" to "9999-12-31" 3 byte date
time "-838: 59: 59" to "838: 59: 59" 3 bytes, minutes and seconds.
datetime "1000-01-01 00:00:00" to "9999-12-31 23:59:59" 8 bytes more general use.
timestamp 1970010100000 2037 at some point 4 bytes.

Reproduced in: https: //www.jianshu.com/p/80e9ba9a76d2

Guess you like

Origin blog.csdn.net/weixin_33736832/article/details/91098964