Sql Server 2005 - 将分区方案添加到非分区表

发布于 2024-09-10 22:35:39 字数 90 浏览 0 评论 0原文

我有一个包含超过 5000 万条记录的表,并且没有任何记录 分割。但现在我想向该表添加分区方案。该表有一个主键。但我想使用另一个 int 列对其进行分区。我该怎么做?

I have a table that has more than 50 million records and which does not have any
partition. But now i want to add a partition scheme to this table. This table has a primary key. But i want to partition it using another int column. How can i do it?

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

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

发布评论

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

评论(1

¢好甜 2024-09-17 22:35:39
  1. 创建分区方案和分区函数。
  2. 在此新分区方案上重新创建聚集索引。
  1. create the partition scheme and partition function.
  2. re-create the clustered index on this new partition scheme.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文