테이블 레벨에서 제약조건 정의

 

*table_constraint : 테이블 레벨에서 제약 조건을 정의하는 경우

table_constraint : ==

{{UNIQUE | PRIMARY KEY} (column[, column]...)

|PRIMARY KEY[USING INDEX index_clause]

|UNIQUE[USING INDEX index+clause]

|FOREIGN KEY (column[. column]...)

                  REFERENCES[schema. ] table[(column[. column]...)]

                              [ON DELETE CASCADE]

|CHECK (condition)}

defer_spec :==

[NOT DEFERRABLE

|DEFERRABLE[INITIALLY{IMMEDIATE | DEFERRED}]]

[DISABLE | ENABLE]

 

 

+ Recent posts