Foreign Key - Referential Actions

Referential Actions

Because the database management system enforces referential constraints, it must ensure data integrity if rows in a referenced table are to be deleted (or updated). If dependent rows in referencing tables still exist, those references have to be considered. SQL:2003 specifies 5 different referential actions that shall take place in such occurrences:

  • CASCADE
  • RESTRICT
  • NO ACTION
  • SET NULL
  • SET DEFAULT

Read more about this topic:  Foreign Key

Famous quotes containing the word actions:

    Now they express
    All that’s content to wear a worn-out coat,
    All actions done in patient hopelessness,
    All that ignores the silences of death,
    Thinking no further than the hand can hold,
    All that grows old,
    Yet works on uselessly with shortened breath.
    Philip Larkin (1922–1986)