Question:
Please see the code below....What does it do, and when is it triggered ?
anonymous
2007-08-31 06:17:40 UTC
CREATE TRIGGER triggerinsert
ON PERSONAL
FOR INSERT
AS
BEGIN
Print ('AFTER Trigger [triggerinsert] - Trigger Executed!!')
END
Four answers:
anonymous
2007-08-31 06:26:46 UTC
This looks like PL/SQL.



It has been a while - but I think this is triggered on the insert into a table (in this case - table PERSONAL). This is just the create of the trigger. And it would just write out to the screen - "Trigger Executed".



Hope that helps!
Cold Breeze
2007-08-31 14:00:45 UTC
When ever a new row of data is inserted into the PERSONAL table in your Oracle database, this trigger is executed displaying the message "Trigger Executed' in your PL/SQL editor.



If you are calling this from a front end like VB the return value after execution of this trigger will be a string "Trigger Executed'



This will triggered when a new row is interted in to the PERSONAL table.
Dilbert's Desk
2007-08-31 13:49:45 UTC
This code will print (to stdout) the phrase "AFTER Trigger [triggerinsert] - Trigger Executed!!" when ever a row is inserted into the table PERSONAL.



Also it will not execute on update nor delete.
Dr. J. Argon M.D.
2007-08-31 13:24:10 UTC
What language is it in?



Either way, I'm pretty sure it's going to do absolutely nothing. Basically ,it's just going to write somewhere 'Trigger Executed'.



..


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...