📜  SQL Server modify_timestamp 触发器 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:04:54.580000             🧑  作者: Mango

代码示例1
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