經安全檢測,此網站為安全網站,請放心前往原始網址!

sql server - Insert Update trigger how to determine if insert or update - Stack Overflow

If it's MS SQL Server... Triggers have special INSERTED and DELETED tables to track "before" and "after" data. So you can use something like IF EXISTS (SELECT * FROM DELETED) to detect an update. You only have rows in DELETED on update, but there are ...

stackoverflow.com

網址安全性掃描由 google 提供