Possible Duplicate:
Having both a Created and Last Updated timestamp columns in MySQL 4.0
Suppose I want to store first visit and last visit time in MySQL database.
Logically, I should add CURRENT_TIMESTAMP as a default attribute for firstVisit and "on update CURRENT_TIMESTAMP" attribute for lastVisit column.
But it gives me the following mysql error:
Incorrect table definition; there can be only one TIMESTAMP column with CURRENT_TIMESTAMP in DEFAULT or ON UPDATE clause
How can I fix this?