Small. Fast. Reliable.
Choose any three.

外键子句

REFERENCES foreign-table ( column-name ) , ON DELETE SET NULL UPDATE SET DEFAULT CASCADE RESTRICT NO ACTION MATCH name NOT DEFERRABLE INITIALLY DEFERRED INITIALLY IMMEDIATE

用法 :   列约束   表约束

也请参阅:   lang_altertable.html    lang_createtable.html