摘要:
在项目中用到了timestamp这个类型,该字段本意是用于存储改行记录的创建时间的,实际上这是一个很危险的设置;mysql官方文档上有这么一段话:TheTIMESTAMPdata type provides a type that you can use to automatically markINSERTorUPDATEoperations with the current date and time. If you have multipleTIMESTAMPcolumns in a table, only the first one is updated automatically. 阅读全文