如何使用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.