►►─ FOREIGN KEY (column-list) REFERENCES table-name ──────────────────────────► ►─┬──────────────────┬─┬───────────┬─────────────────────────────────────────►◄ └─ (ref-col-list) ─┘ └─┤ref-act├─┘
Expansion of ref-act (referential action)
├──┬┤ delete-action ├──────────────┬───────────────────────────────────────────┤ ├┤ update-action ├──────────────┤ ├─ delete-action update-action ─┤ └─ update-action delete-action ─┘
Expansion of delete-action
├── ON DELETE ─┬─ RESTRICT ◄ ──┬───────────────────────────────────────────────┤ ├─ CASCADE ─────┤ ├─ SET DEFAULT ─┤ └─ SET NULL ────┘
Expansion of update-action
├── ON UPDATE RESTRICT ────────────────────────────────────────────────────────┤
Copyright © 2014 CA.
All rights reserved.
|
|