如何使用sql中的触发器自动更新数据库表中的datetime字段? [英] how datetime field in a database table automatically update Everyday using trigger in sql?

查看:111
本文介绍了如何使用sql中的触发器自动更新数据库表中的datetime字段?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在数据库表中记录了一个数据时间.每当我选择该表时,它就会使用当前日期时间自动更新.是否可以使用触发器?

i have one datatime filed in database table.whenever i select that table its gets automatically updated with the current datetime.its posible using trigger?

推荐答案

如何创建时间戳触发器? [
How to create a timestamp trigger?[^] will help you update your date every single time the table is modified.


这篇关于如何使用sql中的触发器自动更新数据库表中的datetime字段?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆