mysql时间戳自动更新
-- Table "pnodetail" DDL
`dataversion` bigint(255) NOT NULL auto_increment,
`sqlcontent` varchar(2000) default NULL,
`optype` smallint(1) default NULL,
`optime` timestamp NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
PRIMARY KEY (`dataversion`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
这样当更新表时,updatetime会设置为当前时间