除了可以编写触发器来实现外,有没有类似 mysql 中设置更新时间字段属性为CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,来实现时间字段的自动更新呢?
1
hhhzccc 2018 年 12 月 24 日
加一个时间字段 update_time 啊。update xxx set xx='',update_time=sysdate where xxx。。。
|
2
heraldic 2018 年 12 月 24 日
感觉只有触发器是最省心的
|