更新时间:2023-02-04 23:36:16
这样的事情可以帮助你入门:
Something like this should help get you started:
CREATE TRIGGER trig_InsertExample
ON [TestTable]
FOR INSERT
AS
Begin
Insert into TestTable (Col1, Col2)
Select t.SomeOtherValue, null
from Inserted i
Left Join TestTable t
on i.ID = t.ID;
End
检查此链接。
http ://msdn.microsoft.com/en-in/library/ms189799(v = sql.100).aspx [ ^ ]
Check this link.
http://msdn.microsoft.com/en-in/library/ms189799(v=sql.100).aspx[^]