成人免费xxxxx在线视频软件_久久精品久久久_亚洲国产精品久久久_天天色天天色_亚洲人成一区_欧美一级欧美三级在线观看

SET CONSTRAINTS 中文man頁面

系統
SET CONSTRAINTS 設置當前事務里的約束運算的特性。 在 IMMEDIATE 模式下,約束是在每條語句后面進行檢查的。 在 DEFERRED 模式下,一直到事務提交時才檢查約束。

NAME

SET CONSTRAINTS - 設置當前事務的約束模式

SYNOPSIS

SET CONSTRAINTS { ALL | name [, ...] } { DEFERRED | IMMEDIATE }

DESCRIPTION 描述

SET CONSTRAINTS 設置當前事務里的約束運算的特性。 在 IMMEDIATE 模式下,約束是在每條語句后面進行檢查的。 在 DEFERRED 模式下,一直到事務提交時才檢查約束。


 在你把約束的模式修改成 IMMEDIATE 之后,新的約束模式是反作用式地生效的: 任何尚在等待的,需要在事務結束檢查地數據修改的約束(在使用 DEFERRED 的時候)都將在執行 SET CONSTRAINTS  命令的時候馬上檢查。


 從創建的時候開始,一個約束總是表現為下面三個特性之一: INITIALLY DEFERRED, INITIALLY IMMEDIATE DEFERRABLE, 或 INITIALLY IMMEDIATE NOT DEFERRABLE。 第三個特性不會受 SET CONSTRAINTS影響。


 目前,只有外鍵約束被這個設置影響。檢查和***約束總是立即檢查的而不是可推遲的。  

NOTES 注意


 這個命令只在當前事務里修改約束的行為。因此,如果你在事務塊外面 (BEGIN/COMMIT 對)執行這個命令, 它將顯得沒有任何作用那樣。如果你希望不在每個事務中發出 SET CONSTRAINTS 也能修改約束的行為, 那么在創建這些約束的時候聲明 INITIALLY DEFERRED 或者 INITIALLY IMMEDIATE。  

COMPATIBILITY 兼容性


 這條命令與 SQL 標準里定義的行為兼容,只不過,在 PostgreSQL 里,它只適用于外鍵約束。  

#p#

NAME

SET CONSTRAINTS - set the constraint mode of the current transaction

SYNOPSIS

SET CONSTRAINTS { ALL | name [, ...] } { DEFERRED | IMMEDIATE }

DESCRIPTION

SET CONSTRAINTS sets the behavior of constraint evaluation in the current transaction. In IMMEDIATE mode, constraints are checked at the end of each statement. In DEFERRED mode, constraints are not checked until transaction commit.

When you change the mode of a constraint to be IMMEDIATE, the new constraint mode takes effect retroactively: any outstanding data modifications that would have been checked at the end of the transaction (when using DEFERRED) are instead checked during the execution of the SET CONSTRAINTS command.

Upon creation, a constraint is always give one of three characteristics: INITIALLY DEFERRED, INITIALLY IMMEDIATE DEFERRABLE, or INITIALLY IMMEDIATE NOT DEFERRABLE. The third class is not affected by the SET CONSTRAINTS command.

Currently, only foreign key constraints are affected by this setting. Check and unique constraints are always effectively initially immediate not deferrable.  

NOTES

This command only alters the behavior of constraints within the current transaction. Thus, if you execute this command outside of a transaction block (BEGIN/COMMIT pair), it will not appear to have any effect. If you wish to change the behavior of a constraint without needing to issue a SET CONSTRAINTS command in every transaction, specify INITIALLY DEFERRED or INITIALLY IMMEDIATE when you create the constraint.  

COMPATIBILITY

This command complies with the behavior defined in the SQL standard, except for the limitation that, in PostgreSQL, it only applies to foreign-key constraints.

責任編輯:韓亞珊 來源: CMPP.net
相關推薦

2011-08-24 17:50:19

SET中文man

2011-08-24 18:02:22

SET TRANSAC中文man

2011-08-24 17:58:08

SET SESSION中文man

2011-08-15 10:21:09

man中文man

2011-08-24 16:48:36

man中文man

2011-08-11 16:11:49

at中文man

2011-08-25 10:21:56

man.conf中文man

2011-08-11 15:03:21

ACCESS中文man

2011-08-11 15:28:43

ali中文man

2011-08-11 16:31:49

biff中文man

2011-08-11 17:16:43

cce中文man

2011-08-11 18:05:04

chvt中文man

2011-08-11 18:13:07

clear中文man

2011-08-12 09:13:02

df中文man

2011-08-12 09:38:06

dircolors中文man

2011-08-12 09:44:37

dirname中文man

2011-08-12 10:20:02

echo中文man

2011-08-12 10:25:55

eject中文man

2011-08-12 11:07:19

git中文man

2011-08-12 13:18:19

head中文man
點贊
收藏

51CTO技術棧公眾號

主站蜘蛛池模板: 日韩免费视频一区二区 | www.性色| 欧美国产日韩在线观看 | 欧洲免费视频 | 亚洲成人一级片 | 日韩资源 | 精品国产欧美一区二区三区成人 | 欧美一区二不卡视频 | 自拍偷拍在线视频 | 一区视频在线播放 | 少妇一区在线观看 | 国内精品久久久久久 | 91精品国产乱码久久久久久 | 视频第一区 | 国产区精品视频 | 国产精品99一区二区 | 精品久久久久久久久久久久久 | 久久伊人精品 | 久久成人一区二区三区 | 欧美激情一区二区三区 | 99精品久久久久久中文字幕 | 伊人久麻豆社区 | 国产精品免费大片 | 鲁大师一区影视 | 中文字幕在线第一页 | 91免费观看在线 | 在线观看中文字幕 | 粉嫩一区二区三区四区公司1 | 美日韩中文字幕 | www国产成人免费观看视频,深夜成人网 | 成年网站在线观看 | 午夜电影福利 | 亚洲午夜精品一区二区三区 | 精品久久久久久久久亚洲 | 99热精品6| 久久久久亚洲 | 亚洲国产中文在线 | 91资源在线 | 波多野吉衣在线播放 | 91极品视频 | 国产精品有限公司 |