CREATE TRIGGER时NEW和OLD是关键字

Posted @->-->--

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了CREATE TRIGGER时NEW和OLD是关键字相关的知识,希望对你有一定的参考价值。

SQLite 触发器 - 菜鸟教程 (runoob.com)

CREATE TRIGGER - sqlite.org

Both the WHEN clause and the trigger actions may access elements of the row being inserted, deleted or updated using references of the form "NEW.column-name" and "OLD.column-name", where column-name is the name of a column from the table that the trigger is associated with. OLD and NEW references may only be used in triggers on events for which they are relevant, as follows:

  • INSERT NEW references are valid
  • UPDATE NEW and OLD references are valid
  • DELETE OLD references are valid

以上是关于CREATE TRIGGER时NEW和OLD是关键字的主要内容,如果未能解决你的问题,请参考以下文章

oracle new 和old 关键字

PLSQL :NEW 和 :OLD

MYSQL trigger 个人记录

MySql之触发器过度变量 new old

Oracle中的触发器TRIGGER

jQuery Mobile:更新导航栏时替代 .trigger('create') 或 .page()?