EKsumic's Blog

let today = new Beginning();

Click the left button to use the catalog.

OR

What is the difference between MySQL datetime and SQL Server datetime?

Let me start with the conclusion: there is no difference.

Someone told me before that when importing sqlserver database into mysql, pay attention that Datetime will become varchar, and you can change it to timestamp.

What is the difference between mysql's timestamp and datetime?
DateTime and TimeStamp are both year, month, day, hour, minute and second, why are there these two types?

The biggest difference between DateTime and TimeStamp is only in the different scenarios. If your application is used in different time zones (that is, both domestic and foreign), various problems will occur if you use dateTime, but if you use TimeStamp, There will be no such time difference.

Previously, I also considered datetime and TimeStamp to be the same, because their data inventory time is in YYYY-MM-DD HH:mm:ss format, but the TimeStamp type stores a 10-digit or 13-digit timestamp.

This article was last edited at 2020-11-05 01:08:29

* *