| MySQL Bug - Auto Update on TIMESTAMP | ![]() |
![]() |
| Written by Administrator |
|
In MySQL version 3.23 and 4, the 1st timestamp field will be automatically set the current time whenever the record is CREATED / UPDATED. Solution: Create a dummy timestamp and make it before other timestamp field sql: -- CREATE DUMMY TIMESTAMP ALTER TABLE table_name ADD dummy_timestmp TIMESTAMP; -- Change field order: |
| Last Update (週六, 07 三月 2009) |

