This topic created in 3826 days ago, the information mentioned may be changed or developed.
如题,比如我要更新文章的更新时间,我可以直接在保存时更新更新时间,也可以使用触发器更新,两者之间有什么不同吗?性能上有区别吗?
2 replies • 2016-05-21 18:40:29 +08:00
 |
|
``` `modification_time` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP, ```
类似这样
|
 |
|
级联操作。。我们一般都拿来做审计 比如表修改的时候记一条数据。。
|