Which virtual table does a trigger use?
Answers were Sorted based on User's Feedback
Answer / kmbkrishnan
Triggers use magic tables - Inserted and Deleted
updated or update table not available.
| Is This Answer Correct ? | 57 Yes | 5 No |
Answer / lenin
Yes,Only inserted and deleted are available in SQL
| Is This Answer Correct ? | 23 Yes | 6 No |
Answer / gourav
Inserted and Deleted.. right answer
what is updated....nonsence.
| Is This Answer Correct ? | 17 Yes | 7 No |
Answer / yoshita
DML triggers use the deleted and inserted logical
(conceptual) tables. They are structurally similar to the
table on which the trigger is defined, that is, the table
on which the user action is tried. The deleted and inserted
tables hold the old values or new values of the rows that
may be changed by the user action. For example, to retrieve
all values in the deleted table, use
| Is This Answer Correct ? | 5 Yes | 3 No |
Answer / sanjay
after trigger - insert - inserted logical table
delete - deleted logical table
update - insert/delete logical table
instead trigger - insert - inserted logical table
delete - deleted logical table
update - insert/delete logical table
| Is This Answer Correct ? | 1 Yes | 1 No |
Answer / learner
triggers use 2 virtual tables called OLD and NEW.
| Is This Answer Correct ? | 5 Yes | 22 No |
Triggers use magic tables(update and delete tables)
| Is This Answer Correct ? | 9 Yes | 35 No |
What is the purpose of self join?
Does a full backup include transaction log?
How many index can be created for single table
4 Answers CarrizalSoft Technologies, Verizon,
What do you mean by cardinality?
Tell me about builtinadministrator?
What is order of B+tree?
What is create command?
What is de-normalization and what are some of the examples of it?
can i write function in stored procedure and stored procedure in function and nested procedure.Give one example for each question?
Can we use trigger new in before insert?
Can a table be moved to different filegroup?
You are designing a database for your human resources department in the employee table, there is a field for social security number, which cannot contain null values if no value is given, you want a value of unknown to be inserted in this field what is the best approach?
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)