create_constraint_trigger.7

来自「PostgreSQL 8.2中增加了很多企业用户所需要的功能和性能上的提高,其开」· 7 代码 · 共 65 行

7
65
字号
.\\" auto-generated by docbook2man-spec $Revision: 1.1.1.1 $.TH "CREATE CONSTRAINT TRIGGER" "" "2008-01-03" "SQL - Language Statements" "SQL Commands".SH NAMECREATE CONSTRAINT TRIGGER \- define a new constraint trigger.SH SYNOPSIS.sp.nfCREATE CONSTRAINT TRIGGER \fIname\fR    AFTER \fIevent [ OR ... ]\fR    ON \fItable_name\fR    [ FROM \fIreferenced_table_name\fR ]    { NOT DEFERRABLE | [ DEFERRABLE ] { INITIALLY IMMEDIATE | INITIALLY DEFERRED } }    FOR EACH ROW    EXECUTE PROCEDURE \fIfuncname\fR ( \fIarguments\fR ).sp.fi.SH "DESCRIPTION".PP\fBCREATE CONSTRAINT TRIGGER\fR is used within\fBCREATE TABLE\fR/\fBALTER TABLE\fR and by\fBpg_dump\fR to create the special triggers forreferential integrity.It is not intended for general use..SH "PARAMETERS".TP\fB\fIname\fB\fRThe name of the constraint trigger. The actual name of thecreated trigger will be of the formRI_ConstraintTrigger_0000 (where 0000 is some numberassigned by the server).Use this assigned name when dropping the trigger..TP\fB\fIevent\fB\fROne of INSERT, UPDATE, orDELETE; this specifies the event that will fire thetrigger. Multiple events can be specified using OR..TP\fB\fItable_name\fB\fRThe (possibly schema-qualified) name of the table in whichthe triggering events occur..TP\fB\fIreferenced_table_name\fB\fRThe (possibly schema-qualified) name of the table referenced by theconstraint. Used by foreign key constraints triggers..TP\fBDEFERRABLE\fR.TP\fBNOT DEFERRABLE\fR.TP\fBINITIALLY IMMEDIATE\fR.TP\fBINITIALLY DEFERRED\fRSee the CREATE TABLE [\fBcreate_table\fR(7)]documentation for details of these constraint options..TP\fB\fIfuncname\fB(\fIargs\fB)\fRThe function to call as part of the trigger processing. See CREATE TRIGGER [\fBcreate_trigger\fR(7)] fordetails..SH "COMPATIBILITY".PP\fBCREATE CONTRAINT TRIGGER\fR is aPostgreSQL extension of the SQLstandard.

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?