临时数据保留

发布于 2024-12-14 10:02:46 字数 203 浏览 1 评论 0原文

我有一个数据库,其中包含我们公司在全国各地的所有分支机构的信息。现在我想将一些新数据放入这个数据库中,但是这些数据在短时间内(比如4周)就会变得无关紧要。这些临时数据每年会需要几次,但每次数据的格式和性质都不同。

我该如何处理这样的情况?每次我需要存储临时数据并在数据变得无关紧要后删除表时,我是否应该继续创建新表,或者有一些常见的模式来处理这样的情况?

多谢

I have a Database containes information about all the branches of our company around the country. Now I want to put some new data to this database, but these data would become irrelevant in a short time (like 4 weeks). These temporary data will be needed few times a year, but each time the format and nature of data is different.

How should I handle situation like this? Should I keep creating new tables everytime I need to store the temporary data and delete the tables after the data become irrelevent or there is some common patterns to handle situation like this?

Thanks a lot

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

作妖 2024-12-21 10:02:46

由于它们不是在会话中创建的意义上的临时表,并且之后也不需要,因此使用常规表并在不再需要它们时将其删除看起来是处理这种情况的好方法。

Since they are not temporary in the sense of created within a session and not needed afterwards, using regular tables and removing them once the need for them is gone looks like a good way to handle the situation.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文