Reputation: 18296
I have a table that one of this record has been changed.
Is there any MySQL function to get the date of this updating?
Upvotes: 2
Views: 142
Reputation:
Well it depends on how you are using the data value.
but mostly it is a good practice to have both created_at and updated_at as attributes for your table.
OR if you want to keep each update date info for a record then store them in different table. before each update in main table insert existing row in tracking table from main table.
Upvotes: 0
Reputation: 181270
No. There is no way to get that modification date unless you explicitly stored it somewhere else (through a trigger or application side technique).
Upvotes: 6