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
posted @   Fun_with_Words  阅读(23)  评论(0编辑  收藏  举报
(评论功能已被禁用)
相关博文:
阅读排行:
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· Manus的开源复刻OpenManus初探
· 写一个简单的SQL生成工具
· AI 智能体引爆开源社区「GitHub 热点速览」
· C#/.NET/.NET Core技术前沿周刊 | 第 29 期(2025年3.1-3.9)
历史上的今天:
2022-01-14 A Child's History of England.141
2022-01-14 A Child's History of England.140
2022-01-14 A Child's History of England.139
2022-01-14 A Child's History of England.138
2022-01-14 A Child's History of England.137
2022-01-14 A Child's History of England.136
2022-01-14 A Child's History of England.135









 和5张牌。

点击右上角即可分享
微信分享提示