About 435,000 results
Open links in new tab
  1. When/Why to use Cascading in SQL Server? - Stack Overflow

    When setting up foreign keys in SQL Server, under what circumstances should you have it cascade on delete or update, and what is the reasoning behind it? This probably applies to …

  2. How do I use cascade delete with SQL Server? - Stack Overflow

    To add "Cascade delete" to an existing foreign key in SQL Server Management Studio: First, select your Foreign Key, and open its "DROP And CREATE To.." in a new Query window. …

  3. Good explanation of cascade (ON DELETE/UPDATE) behavior

    Jun 20, 2013 · 21 SQL:2011 Spec There are five options for ON DELETE and ON UPDATE that can apply to the FOREIGN KEY. These are called <referential actions>, directly from the …

  4. sql - When to use "ON UPDATE CASCADE" - Stack Overflow

    Sep 26, 2009 · ON DELETE CASCADE: SQL Server deletes the rows in the child table that is corresponding to the row deleted from the parent table. ON DELETE SET NULL: SQL Server …

  5. SQL ON DELETE CASCADE, Which Way Does the Deletion Occur?

    My question is when a deletion occurs in either of the two relations, which way does the deletion cascade? If I delete a tuple in the Courses relation, will it delete all referencing tuples in the …

  6. mysql - Setting up table relations what do "Cascade", "Set Null" …

    CASCADE will propagate the change when the parent changes. (If you delete a row, rows in constrained tables that reference that row will also be deleted, etc.) SET NULL sets the …

  7. Difference between On Delete Cascade & On Update Cascade in …

    Aug 22, 2014 · I have two tables in MySQL database- parent, child. I'm trying to add foreign key references to my child table based on the parent table. Is there any significant difference …

  8. How to add 'ON DELETE CASCADE' in ALTER TABLE statement

    I have a foreign key constraint in my table, I want to add ON DELETE CASCADE to it. I have tried this: alter table child_table_name modify constraint fk_name foreign key (child_column_name)

  9. Difference between CASCADE and RESTRICT? SQL DDL database

    Mar 13, 2015 · Could anyone tell me what exactly CASCADE, and RESTRICT mean? It's in database systems subject to the DDL Part And what if I don't write any of them in my ON …

  10. sql - Is it bad to rely on foreign key cascading? - Stack Overflow

    Feb 5, 2010 · The lead developer on a project I'm involved in says it's bad practice to rely on cascades to delete related rows. I don't see how this is bad, but I would like to know your …