About 238,000 results
Open links in new tab
  1. What Does DROP TABLE CASCADE do in PostgreSQL

    Aug 24, 2022 · In PostgreSQL, the CASCADE option is used with the DROP TABLE statement to drop/delete a table and its dependent objects. To do so, specify the DROP TABLE command …

  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. Cascade in SQL - GeeksforGeeks

    Jul 23, 2025 · By understanding and using the ON DELETE CASCADE, ON UPDATE CASCADE, and simulated ON INSERT CASCADE, developers can create efficient and consistent …

  4. PostgreSQL: Documentation: 18: DROP TABLE

    Nov 13, 2025 · DROP TABLE always removes any indexes, rules, triggers, and constraints that exist for the target table. However, to drop a table that is referenced by a view or a foreign-key …

  5. SQL Server: drop table cascade equivalent? - Stack Overflow

    In SQL Server Management Studio, go to Options / SQL Server Object Explorer / Scripting, and enable 'Generate script for dependent objects'. Then right click the table, script > drop to > …

  6. DELETE CASCADE and UPDATE CASCADE in SQL Server foreign …

    This article will provide a review on DELETE CASCADE and UPDATE CASCADE rules in SQL Server foreign key.

  7. The CASCADE clause of the DROP TABLE statement - jooq.org

    The following two syntactic elements can be added to a DROP TABLE statement: RESTRICT (the default): The DROP operation should fail if there are any dependent objects, such as views. …

  8. DELETE CASCADE – Basic Example | Notes on SQL

    Jul 31, 2024 · The DELETE CASCADE is specified against the foreign key. Basically, it is there as a check against the foreign key constraint, when an attempt is made to delete the associated …

  9. Cascade Deletes - Supabase Docs

    CASCADE: When a row is deleted from the parent table, all related rows in the child tables are deleted as well. RESTRICT: When a row is deleted from the parent table, the delete operation …

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

    Jun 20, 2013 · That tells you which deletes (deletes of the parent) get cascaded, where the ON DELETE CASCADE statement goes (on the child), and what gets deleted (the child).