Current time when MySQL record is saved to database

后端 未结 3 1658
鱼传尺愫
鱼传尺愫 2021-01-29 12:31

I\'m working with Zend Framework 1.12 and Mysql. I want to add column in database, which save currenct datetime when record was inserted into table.

Anyone knows how can

3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-29 13:25

    you must change column type to TIMESTAMP , and in default field set CURRENT_TIMESTAMP

提交回复
热议问题