Maximum difference between datetime and smalldatetime

Source: Internet
Author: User
Well! I learned how to solve this problem. I always thought that the difference between smalldatetime and datetime was not only due to the time when the valid time of smalldatetime was ~ The valid time of 2079/6/6 datetime ranges from 1753/1 to 1 ~ 9999/12/31, so I decided that smalldatetime would be used if the value does not need to be too long. But I ignored the difference that is more important, that is Smalldatetime can only be refined to minutes, while datetime can be refined to 3.33 milliseconds.Therefore, how can I save it? After the second is 00, it turns out that the original memory is smalldatetime. After I change the data type to datetime, the second part can be properly retained.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.