触发器 (数据库)
触发进程(英语:trigger)是在数据库中,在执行对数据有异动的动作时,先行拦截并处理的一种数据库对象,它大部份会设在数据表中,作为强制运行特定动作的进程,因此又称为数据操纵语言(DML)触发器。
触发程序的好处有:
- 可在写入数据表前,强制检验或转换数据。
- 触发进程发生错误时,异动的结果会被撤销。
- 部份数据库管理系统可以针对数据定义语言(DDL)使用触发进程,称为DDL触发器。
- 可依照特定的情况,替换异动的指令 (INSTEAD OF)。
单词 | Database trigger |
释义 |
Database trigger
中文百科
触发器 (数据库)触发进程(英语:trigger)是在数据库中,在执行对数据有异动的动作时,先行拦截并处理的一种数据库对象,它大部份会设在数据表中,作为强制运行特定动作的进程,因此又称为数据操纵语言(DML)触发器。 触发程序的好处有:
英语百科
Database trigger 触发器 (数据库)A database trigger is procedural code that is automatically executed in response to certain events on a particular table or view in a database. The trigger is mostly used for maintaining the integrity of the information on the database. For example, when a new record (representing a new worker) is added to the employees table, new records should also be created in the tables of the taxes, vacations and salaries. |
随便看 |
|
英汉网英语在线翻译词典收录了3779314条英语词汇在线翻译词条,基本涵盖了全部常用英语词汇的中英文双语翻译及用法,是英语学习的有利工具。