触发器问题(高手帮忙)
create trigger Table1Update
ON Table1
after update
as
begin
DELETE FROM Table1 Where exists(select * from instered where instered.Sno = Table1.Sno)
INSERT INTO Table1 (Sno, col1, col2)
SELECT Sno, col1, col2 FROM inserted
end
go
這樣觸發的時候DELETE那個語句好象有問題,注釋了就可以
不注釋會出錯
請問怎麼回事