Possible Duplicate:
Having both a Created and Last Updated timestamp columns in MySQL 4.0如何制作多个CURRENT_TIMESTAMP列?
假设我想在MySQL数据库中存储第一次访问和上次访问时间。
逻辑上,我应该将CURRENT_TIMESTAMP添加为firstVisit的默认属性,并在lastVisit列的“更新CURRENT_TIMESTAMP”属性中添加 。
但它给了我下面的MySQL错误:
Incorrect table definition; there can be only one TIMESTAMP column with CURRENT_TIMESTAMP in DEFAULT or ON UPDATE clause
我怎样才能解决这个问题?
解答如下:http://stackoverflow.com/questions/267658/having-both-a-created-and-last-updated-timestamp-columns-in-mysql-4-0 – Jacob
@cularis:抓到好,投票重复 –