当前位置:网站首页>Trigger for gbase 8s
Trigger for gbase 8s
2022-06-25 04:32:00 【Eight delicacies tofu】
trigger (Trigger) Is a special stored procedure . On the watch INSERT、DELETE or UPDATE In operation , Some triggers can be defined to make the database server automatically call stored procedures or SQL sentence . Triggers maintain the consistency of logically related data in different tables , Maintain the relevant integrity of the data .
Triggers can also be used to enforce referential integrity , To add to multiple tables 、 When a row is updated or deleted , Retain the relationships defined between these tables . However , The best way to enforce referential integrity is to define primary and foreign key constraints in related tables . If you use a database diagram , You can create relationships between tables to automatically create foreign key constraints .
Triggers are sometimes called events - Conditions - Action rules (Event-Condition-Action Role,ECA The rules ).
A trigger consists of three parts :
(1) event : It refers to the insertion into the database 、 Delete 、 Modification and other operations . When an event declared by the database programmer occurs , Trigger starts working .
(2) Conditions : When the trigger is activated by an event , Not immediately , Instead, the trigger tests the trigger condition first . If the condition holds , Then the trigger executes the corresponding action , Otherwise the trigger does nothing .
(3) action : If the trigger meets the predefined conditions , Then the action associated with the trigger (Action) Executed by the database management system . These actions can prevent events from happening ( I.e. cancellation event , For example, delete the tuple just inserted ), It can be a series of database operations , It can even be related to other operations that have nothing to do with triggering events .
边栏推荐
- Office macro virus bounce shell experiment
- 记录小知识点
- Laravel document sorting 11. System architecture
- "Renaissance" in the digital age? The bottom digital collection makes people happy and sad
- A detailed summary of four handshakes (or four waves) over TCP connections
- mysql的tinyint字段类型判断的疑惑
- Acmstreamopen return value problem
- Shutter fittedbox component
- sql_ mode=only_ full_ group_ By's pit
- CTF_ Web: deserialization of learning notes (II) CTF classic test questions from shallow to deep
猜你喜欢

Summary of various problems encountered by cocos2d-x

论文阅读《LSD-SLAM: Large-Scale Direct Monocular SLAM》

CTF_ Web: advanced problem WP (5-8) of attack and defense world expert zone

Acmstreamopen return value problem

LabVIEW开发气体调节器

【openwrt】推荐一个国内开发的openwrt的版本,iStoreOS简介,非常好用,主要是做了一些优化。解决了汉化的问题。

CTF_ Web: Advanced questions of attack and defense world expert zone WP (1-4)

5 key indicators of SEO: ranking + traffic + session + length of stay + bounce rate

OBS Browser+浏览器的基本使用

UCLA | generative pre training for black box optimization
随机推荐
OBS Browser+浏览器的基本使用
sql_ mode=only_ full_ group_ By's pit
How to screen out words related to products and eliminate invalid words accurately
单元测试覆盖率
kenlm
讲座记录《捷联惯导解算的历史及发展》
Comparison of towe/ JIRA / tapd / Zen collaboration platforms
UCLA | generative pre training for black box optimization
GBASE 8s 索引R树
How many images can opencv open?
Shutter fittedbox component
GBASE 8s的级联删除功能
【LeetCode】148. Sort linked list
深度学习——几种学习类型
A detailed summary of TCP connection triple handshake
GBASE 8s 索引B+树
A detailed summary of four handshakes (or four waves) over TCP connections
Laravel document sorting 3. CSRF protection
GBASE 8s存儲過程語法結構
Lecture record: data processing methods and applications of various spatial geodetic techniques