gpt4 book ai didi

database-design - 如何处理删除异常?

转载 作者:行者123 更新时间:2023-12-04 18:24:03 24 4
gpt4 key购买 nike

"There are circumstances in which the deletion of data representing certain facts
necessitates the deletion of data representing completely different facts. The
"Faculty and Their Courses" table described in the previous example suffers
from this type of anomaly, for if a faculty member temporarily ceases to be
assigned to any courses, we must delete the last of the records on which that
faculty member appears, effectively also deleting the faculty member. This
phenomenon is known as a deletion anomaly."
  • http://en.wikipedia.org/wiki/Database_normalization

  • 在关系数据库管理系统中应该如何处理删除异常?有没有“软删除”的替代品?

    最佳答案

    删除异常是不良数据库设计的明显症状(假设是事务性设计)。摆脱它们的最好方法是将您的模型规范化为 - 至少 - 3rd Normal Form (3NF)。

    可以找到一个很好的解释here .

    关于database-design - 如何处理删除异常?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10096544/

    24 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com