Mysql 设置字段自动获取当前系统时间

设置表字段属性时:

1、将字段类型设为  TIMESTAMP 

 2、将默认值设为  CURRENT_TIMESTAMP

猜你喜欢

转载自blog.csdn.net/qq15577969/article/details/80199377
今日推荐