PLSQL :NEW and :OLD

前端 未结 13 1199
孤街浪徒
孤街浪徒 2020-12-24 06:30

Can anyone help me understand when to use :NEW and :OLD in PLSQL blocks, I\'m finding it very difficult to understand their usage.

13条回答
  •  抹茶落季
    2020-12-24 07:11

    :New and :Old Value can be differentiated in DML Statements .
    Insert -- :Old = NULL :New= Inserted new value

    Update -- :Old = Value present in table before the Update statement Triggered :New = Given new value to Update

    Delete -- :Old = Value before deletion :New = NULL

提交回复
热议问题