What is the database concept equivalent to "Removing a user, deleting all its posts"? And it's a good thing?
Another example: If your website is a programming forum, you need to find and delete comments related to that topic before you delete the topic.
Should it be handled in the database level automatically?
delete cascading
recommend actual deletion - instead of a soft extinction By using which marks the deleted record - in this case, you can use cascading updates (or not, because the original topic has already been marked as deleted).
Comments
Post a Comment