adspace


How would you reference column values before and after you have inserted and deleted triggers?

Answer Posted / Shish Ram

In an INSERT trigger, you can reference the old row (before insert) using the pseudo-record variable :OLD. In a DELETE trigger, you can reference the old row (before delete) using :OLD.nFor newly inserted rows in an INSERT trigger, use :NEW to access the new values.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to use regular expression in pattern match conditions? : Sql dba

1125


What is the current version of sql?

1106


what is dbms? : Sql dba

1070


what are all the common sql function? : Sql dba

1141


what is sql server agent? : Sql dba

1189


Can we rollback truncate?

1083


Can delete statement be rollbacked?

1065


what are aggregate and scalar functions? : Sql dba

1142


what are the advantages of sql ? : Sql dba

1154


What is the best sql course?

1064


Does group by remove duplicates?

1121


Hi am new to PLSQL & facing problems in writing code like in SP, Functions, so any one having some SP coding with in depth explanation please share with me my Email ID suvarnaatsuvarna@rediffmail.com Or taking tanning on this please do contact me

2102


what is schema? : Sql dba

1163


how many tables will create when we create table, what are they? : Sql dba

1156


Do we need to rebuild index after truncate?

1154