Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Initially immediate and initially deferred

2025-03-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

initially immediately execute.initially delayed execution. Table constraint definition: [ CONSTRAINT name ] { PRIMARY KEY constraint | FOREIGN KEY constraint | UNIQUE constraint | CHECK constraint } [ {INITIALLY DEFERRED | INITIALLY IMMEDIATE} ] [ [ NOT ] DEFERRABLE ] Column constraint definition: [ CONSTRAINT name ] { NOT NULL constraint | PRIMARY KEY constraint | FOREIGN KEY constraint | UNIQUE constraint | CHECK constraint } [ {INITIALLY DEFERRED | INITIALLY IMMEDIATE} ] [ [ NOT ] DEFERRABLE ] A CONSTRAINT definition can contain a clause with delay attributes in any order and/or an initialization constraint clause.

NOT DEFERRABLE

This means that every SQL statement executed must be checked for constraint violations.

DEFERRABLE

Means that constraint validation can be deferred until later, but no later than the end of the current transaction.

At the beginning of a transaction, each constraint sets an initial value for the pattern of each constraint.

INITIALLY IMMEDIATE

This means that when a transaction begins, every SQL statement must be checked for constraint violations after execution.

INITIALLY DEFERRED

This means that when a transaction starts, checking constraints can be deferred until later, but no later than the end of the current transaction.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report