Bug #65471 | Need to have two timestamps in one table, one filled on create, second on update | ||
---|---|---|---|
Submitted: | 31 May 2012 12:41 | Modified: | 31 May 2012 19:34 |
Reporter: | Jakub Pawlinski | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Data Types | Severity: | S5 (Performance) |
Version: | OS: | Any | |
Assigned to: | CPU Architecture: | Any | |
Tags: | CURRENT_TIMESTAMP on update timestamp two fields |
[31 May 2012 12:41]
Jakub Pawlinski
[31 May 2012 14:02]
Peter Laursen
You can do as you want with MySQL 5.6.5. Refer for instance: http://mysqlblog.fivefarmers.com/2012/05/29/overlooked-mysql-5-6-new-features-timestamp-an... + MySQL 5.6 documentation: http://dev.mysql.com/doc/refman/5.6/en/timestamp-initialization.html Peter (not a MySQL person)
[31 May 2012 14:56]
Valeriy Kravchuk
In older versions you can just create trigger for update of each row.
[31 May 2012 19:34]
Jakub Pawlinski
Ok, thanks Peter. I will migrate asap. Cheers