Home > Backend Development > PHP Tutorial > php安插timestamp类型显示0000-00-00 00:00:00

php安插timestamp类型显示0000-00-00 00:00:00

WBOY
Release: 2016-06-13 12:26:26
Original
1119 people have browsed it

php插入timestamp类型显示0000-00-00 00:00:00




------解决思路----------------------
imestamp 数据类型只是递增的数字,不保留日期或时间。 若要记录日期或时间,请使用 datetime 数据类型。、

看看这个帖子:
http://bbs.csdn.net/topics/310169896
------解决思路----------------------
一个表中,只能有一个可on update CURRENT_TIMESTAMP的Timestamp字段,其他的TIMESTAMP字段都不会自动更新的。

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template