亲测:
DROP TABLE IF EXISTS WAYBILL; CREATE TABLE WAYBILL ( `ID` int(10) NOT NULL AUTO_INCREMENT , `createTime` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '数据插入时间' , PRIMARY KEY (`ID`) ) DEFAULT CHARACTER SET=utf8 COLLATE=utf8_general_ci ;
在ID输入数据提交,createTime自动更新当前系统时间