sql server中datetime和smalldatetime的区别
网络整理 - 07-27
1、datetime记录的时间范围较长,1753-01-01到9999-12-31,可以精确到“秒”,它的长度为8位,所占的空间较大。datetime: Date and time data from January 1, 1753, to December 31, 9999, wITh an accuracy of three-hundredths of a second, or 3.33 milliseconds.
2、smalldatetime记录的时间范围较短,1900-01-01到2079-6-6,只能到精确到“分”,它的长度为4位,所占的空间较小。
smalldatetime: Date and time data from January 1, 1900, through June 6, 2079, wITh an accuracy of one minute.