new and old trigger code

后端 未结 4 1025
长情又很酷
长情又很酷 2020-12-30 14:53

can someone please explain what is meant by:

:new and :old in trigger code.

4条回答
  •  囚心锁ツ
    2020-12-30 15:41

    the old value is the value before the change and the new value is the value to be changed, so for example, on a update set col1=10, 10 is the new value and the value that is current in the column is the old on.

    On a insert, there isnt old value, only new and on a delete there isn't new value, only old

提交回复
热议问题