自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

SET CONSTRAINTS 中文man頁(yè)面

系統(tǒng)
SET CONSTRAINTS 設(shè)置當(dāng)前事務(wù)里的約束運(yùn)算的特性。 在 IMMEDIATE 模式下,約束是在每條語(yǔ)句后面進(jìn)行檢查的。 在 DEFERRED 模式下,一直到事務(wù)提交時(shí)才檢查約束。

NAME

SET CONSTRAINTS - 設(shè)置當(dāng)前事務(wù)的約束模式

SYNOPSIS

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

DESCRIPTION 描述

SET CONSTRAINTS 設(shè)置當(dāng)前事務(wù)里的約束運(yùn)算的特性。 在 IMMEDIATE 模式下,約束是在每條語(yǔ)句后面進(jìn)行檢查的。 在 DEFERRED 模式下,一直到事務(wù)提交時(shí)才檢查約束。


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


 從創(chuàng)建的時(shí)候開(kāi)始,一個(gè)約束總是表現(xiàn)為下面三個(gè)特性之一: INITIALLY DEFERRED, INITIALLY IMMEDIATE DEFERRABLE, 或 INITIALLY IMMEDIATE NOT DEFERRABLE。 第三個(gè)特性不會(huì)受 SET CONSTRAINTS影響。


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

NOTES 注意


 這個(gè)命令只在當(dāng)前事務(wù)里修改約束的行為。因此,如果你在事務(wù)塊外面 (BEGIN/COMMIT 對(duì))執(zhí)行這個(gè)命令, 它將顯得沒(méi)有任何作用那樣。如果你希望不在每個(gè)事務(wù)中發(fā)出 SET CONSTRAINTS 也能修改約束的行為, 那么在創(chuàng)建這些約束的時(shí)候聲明 INITIALLY DEFERRED 或者 INITIALLY IMMEDIATE。  

COMPATIBILITY 兼容性


 這條命令與 SQL 標(biāo)準(zhǔn)里定義的行為兼容,只不過(guò),在 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.

責(zé)任編輯:韓亞珊 來(lái)源: CMPP.net
相關(guān)推薦

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-24 16:48:36

man中文man

2011-08-15 10:21:09

man中文man

2011-08-11 16:11:49

at中文man

2011-08-25 10:21:56

man.conf中文man

2011-08-15 15:02:31

usleep中文man

2011-09-23 13:59:40

find中文man

2011-08-12 09:17:57

deallocvt中文man

2011-08-25 17:24:54

puts中文man

2011-07-15 16:58:36

ac中文man

2011-08-11 18:32:21

cp中文man

2011-08-23 11:34:26

ipcs中文man

2011-08-25 10:16:02

lmhosts中文man

2011-08-24 15:29:06

grant中文man

2011-08-25 17:32:40

setbuffer中文man

2011-08-25 16:50:08

getc中文man

2011-08-25 16:52:54

getchar中文man

2011-08-25 17:03:51

pclose中文man
點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號(hào)