-
deleting rows with fk constraint
If I have tables with FK constraints but do not have the 'on delete cascade' option set, do I need to write a delete statement for every table starting with the lowest child to delete all records? Or is there a cascade delete option for the delete statement?
-
There is no "cascade" option for the "delete" statement.
Pablo (Paul) Berzukov
Author of Understanding Database Administration available at amazon and other bookstores.
Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|