Difficulty: Easy
Correct Answer: Valid (Oracle does not support ON UPDATE CASCADE; only ON DELETE CASCADE is available)
Explanation:
Introduction / Context:
Different relational databases offer different referential actions. Oracle historically supports ON DELETE CASCADE but does not implement ON UPDATE CASCADE in declarative foreign keys. Knowing this prevents designing schemas that rely on unsupported automatic key updates.
Given Data / Assumptions:
Concept / Approach:
Oracle encourages stable primary keys. When parent key values must change, you typically perform controlled updates using application logic or surrogate keys, or you recreate related rows. Declaratively, Oracle allows ON DELETE CASCADE and ON DELETE SET NULL/DEFAULT (as applicable), but not ON UPDATE CASCADE. Therefore, the statement that Oracle does not support CASCADE UPDATE is correct.
Step-by-Step Solution:
Verification / Alternative check:
Consult Oracle reference for CREATE TABLE … FOREIGN KEY constraints; ON UPDATE options are absent. Testing in SQL*Plus confirms unsupported syntax.
Why Other Options Are Wrong:
Common Pitfalls:
Porting schemas from MySQL or PostgreSQL that rely on ON UPDATE CASCADE; forgetting to protect parent key stability.
Final Answer:
Valid (Oracle does not support ON UPDATE CASCADE; only ON DELETE CASCADE is available)
Discussion & Comments