GeekInterview.com
Series: Subject: Topic:
Question: 272 of 290

What are two virtual tables available during database trigger execution ?

 The table columns are referred as OLD.column_name and NEW.column_name.For triggers related to INSERT only NEW.column_name values only available.For  triggers related to UPDATE only OLD.column_name NEW.column_name values only available.For triggers related to DELETE only OLD.column_name values only available.
Asked by: Interview Candidate | Asked on: Sep 9th, 2004
Showing Answers 1 - 2 of 2 Answers
bambino_chakma

Answered On : Jul 15th, 2007

View all answers by bambino_chakma

The two virtual table available are old and new.

Yes  1 User has rated as useful.
  
Login to rate this answer.

OLD and NEW are two virtual tables available during database trigger execution.

UPDATE statement has access to  both old and new values.

INSERT  statement has access only to new values. Old values are NULL for insert statement.

DELETE satement has access only to old values.  New values are NULL for delete statement.

Yes  2 Users have rated as useful.
  
Login to rate this answer.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.