DBAsupport.com Forums - Powered by vBulletin
Results 1 to 4 of 4

Thread: cascade delete on all tables

  1. #1
    Join Date
    Jun 2000
    Location
    dumfries,va,usa
    Posts
    227
    Hi all,
    I would like to cascade all delete commands on my tables. When I checked user_constraints.delete_rule the value is set at "NO ACTION". What must I do (please include commands) to cascade delete operations on all the tables.

    Thanks in advance
    Leonard905
    leonard905
    leonard905@yahoo.com

  2. #2
    Join Date
    Mar 2001
    Posts
    71
    Hi,

    When You define constraint, you can specify clause
    ON DELETE CASCADE. This will delete all dependent rows in
    child table when you remove referenced row in parent table.

    np70

  3. #3
    Join Date
    Jun 2000
    Location
    dumfries,va,usa
    Posts
    227
    I understand that. What I need is how to add the cascade clause to existing constraints.

    Thanks
    leonard905
    leonard905@yahoo.com

  4. #4
    Join Date
    Mar 2001
    Posts
    71
    I am not sure, but AFAIK you can't change existing constrain
    on column. To change constraint, I usually drop and recreate
    constraint when nobody is using these tables.

    HTH

    np70

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width