0% found this document useful (0 votes)
47 views1 page

Trigger

This database trigger runs for both insert and delete operations on the empname table. It inserts the inserted records' name fields into the dupempname table and inserts the deleted records' name fields into the delnametab table. The trigger logs both inserted and deleted record names on empname table modifications.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
47 views1 page

Trigger

This database trigger runs for both insert and delete operations on the empname table. It inserts the inserted records' name fields into the dupempname table and inserts the deleted records' name fields into the delnametab table. The trigger logs both inserted and deleted record names on empname table modifications.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

ALTER TRIGGER CatchInsertDelete

ON empname
FOR INSERT, DELETE
AS
INSERT INTO dupempname (dupname)
SELECT name FROM Inserted
INSERT INTO delnametab (delname)
SELECT name FROM Deleted
Go

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy