MySQL timestamp的默认值怎么设置?
伊谢尔伦
伊谢尔伦 2017-04-17 16:12:49
0
4
1521
伊谢尔伦
伊谢尔伦

小伙看你根骨奇佳,潜力无限,来学PHP伐。

reply all(4)
伊谢尔伦

2038 is still far away. . .

The current solution is to use CURRENT_TIMESTAMP for insert columns

Peter_Zhu

Reference

小葫芦

If the time is short, use datetime. Our company currently uses the default null

迷茫

receive_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, this is what I always use

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template