SQL SERVER 中的smalldatetime和datetime区别「建议收藏」
![作者头像](https://developer.qcloudimg.com/http-save/10011/5eef79a6a73684fac572184b7b0fa2c9.jpg)
大家好,又见面了,我是你们的朋友全栈君。
smalldatetime不能到秒. 不過它占的空間小.(4位) datetime(8位) 而且兩者的時間範圍不一樣.
datetime占8字节,精度3.33毫秒,时间从1753.1.1到9999.12.31 smalldatetime占4字节,精度1分钟,时间从1900.1.1到2079.6.6 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. smalldatetime