Php 一个表中有两个日期时间戳
我有桌上产品:Php 一个表中有两个日期时间戳,php,mysql,sql,phpmyadmin,Php,Mysql,Sql,Phpmyadmin,我有桌上产品: - id : int; - name : varchar(100); - date_operation : timestamp - date_confirmation : timestamp 但我不允许在phpmyadmin中添加两个日期时间戳 date_operation TIMESTAMP NOT NULL default ’0000-00-00 00:00:00′, date_confirmation TIMESTAMP NOT NULL default CU
- id : int;
- name : varchar(100);
- date_operation : timestamp
- date_confirmation : timestamp
但我不允许在phpmyadmin中添加两个日期时间戳
date_operation TIMESTAMP NOT NULL default ’0000-00-00 00:00:00′,
date_confirmation TIMESTAMP NOT NULL default CURRENT_TIMESTAMP,
正如@Umair Khan所评论的,您应该知道时间戳使用的原因和位置,并且非常有用。首先,您应该知道时间戳使用的原因和位置