📅  最后修改于: 2022-03-11 15:04:54.580000             🧑  作者: Mango
CREATE TRIGGER dbo.updateDate
ON dbo.test
AFTER INSERT, UPDATE
AS UPDATE test SET test = CURRENT_TIMESTAMP
FROM test t
INNER JOIN inserted i
ON t.ID = i.ID
GO