create trigger UpTime
on table1
for Update
as
update table1 set field3 = getdate() where .....???
不知道后面的where条件该怎样写了.table1里有一个主键,FID...
...全文
1845打赏收藏
怎样写一个触发器,让表里的时间字段为当前修改时间?
比如,当对表里的字段做修改时,忘记修改它的时间了. 因此,希望通过触发器,自动修改它的某个字段(该字段保存的是时间). create trigger UpTime on table1 for Update as update table1 set field3 = getdate() where .....??? 不知道后面的where条件该怎样写了.table1里有一个主键,FID...