Database: To delete or not to delete records

前端 未结 8 846
一个人的身影
一个人的身影 2020-12-07 08:41

I don\'t think I am the only person wondering about this. What do you usually practice about database behavior? Do you prefer to delete a record from the database physically

8条回答
  •  北荒
    北荒 (楼主)
    2020-12-07 09:09

    As a complement to all posts...

    However, if you plan to mark the record, its good to consider making a view, for active records. This would save you from writing or forgetting the flag in your SQL query. You might consider a view for non-active records too, if you think that also serve a purpose.

提交回复
热议问题