成人免费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技術棧公眾號

主站蜘蛛池模板: 国产91久久精品一区二区 | 91p在线观看 | 精品国产一区二区三区久久久四川 | 国产一区| 亚洲iv一区二区三区 | 国产精品视频一区二区三区四区国 | 黄色免费网站在线看 | 欧美成人精品一区二区男人看 | 91亚洲国产成人精品一区二三 | 免费黄色片在线观看 | 中文字幕 在线观看 | 日韩欧美大片在线观看 | 亚洲一区欧美 | 亚洲精久久久 | 免费1区2区3区| 三级在线视频 | 亚洲第一中文字幕 | 国内精品一区二区三区 | 成在线人视频免费视频 | 国产成人精品一区二区三区视频 | 黑人巨大精品欧美一区二区免费 | 中文字幕在线观看精品 | 久久综合激情 | 青青草在线视频免费观看 | 精品一区欧美 | 欧美一区二 | 在线久草| 在线观看中文字幕 | 美女人人操 | 一区二区三区免费 | 天天操天天玩 | 欧美2区 | 精品毛片视频 | 日韩中文字幕在线视频 | 日韩精品一区二区三区免费观看 | 日韩和的一区二区 | 日韩激情视频一区 | 精精国产xxxx视频在线野外 | 国产精品一区二区精品 | 国产精品久久久久久久免费大片 | 97精品视频在线观看 |