MySQL Timestamp - why all zeros?

前端 未结 4 655
天涯浪人
天涯浪人 2021-02-09 14:28

I\'m using PHPMyAdmin and I\'ve got a MySQL table column called \"timestamp.\" The type (surprise!) is TIMESTAMP, and in \'attributes\' I\'ve set it to ON UPD

4条回答
  •  自闭症患者
    2021-02-09 14:56

    Try setting the default value to CURRENT_TIMESTAMP instead of putting that in the attributes.

    MySQL Reference

提交回复
热议问题