Does MySQL have an equivalent of SQL Server rowversion?

后端 未结 2 478
攒了一身酷
攒了一身酷 2021-01-13 09:23

I am migrating a SQL Server database schema over to MySQL. Some of the tables on SQL Server have a column of type rowversion. This is an integer value that is set when the r

相关标签:
2条回答
  • 2021-01-13 09:45

    The MySQL TIMESTAMP data type has the auto initialize and auto update features needed for optimistic concurrency tests. See, for example, http://www.mysqltutorial.org/mysql-timestamp.aspx

    0 讨论(0)
  • 2021-01-13 10:05

    The MySQL TIMESTAMP data type may have initialize and auto-update features but the data type is date based and if the resolution is not in the ns dimension you will have problems. Even with ns resolution there still might be problems... So the answer is actually no.

    0 讨论(0)
提交回复
热议问题