美文网首页
mysql中表字段注意事项

mysql中表字段注意事项

作者: ClearWang | 来源:发表于2017-11-15 09:49 被阅读0次

如图所示,其中create_data和expires_data字段均使用了on update current_timestamp操作,表示更新表时这两个字段会自动设置为当前时间(如果这两个字段没有被更新的情况下),设置的时间格式为: yyyy-MM-dd hh:mm:ss 例如:2017-11-15 09:41:59

相关文章

网友评论

      本文标题:mysql中表字段注意事项

      本文链接:https://www.haomeiwen.com/subject/xyccvxtx.html