发布网友 发布时间:2022-04-10 04:50
共2个回答
懂视网 时间:2022-04-10 09:12
,[20030101, 20040101)
, [20040101
, 999909999
)
The following partition function will partition a table or index into four partitions.
tsqlCREATE PARTITION FUNCTION myRangePF1 (int)
AS RANGE LEFT FOR VALUES (1, 100, 1000);
The following table shows how a table that uses this partition function on partitioning column col1 would be partitioned.
Partition | 1 | 2 | 3 | 4 |
---|---|---|---|---|
Values | col1 <= 1 |
col1 > 1 AND col1 <= 100 |
col1 > 100 AND col1 <=1000 |
col1 > 1000 |
The following partition function uses the same values for boundary_value [ ,...n ] as the previous example, except it specifies RANGE RIGHT.
tsqlCREATE PARTITION FUNCTION myRangePF2 (int)
AS RANGE RIGHT FOR VALUES (1, 100, 1000);
The following table shows how a table that uses this partition function on partitioning column col1 would be partitioned.
Partition | 1 | 2 | 3 | 4 |
---|---|---|---|---|
Values | col1 < 1 |
col1 >= 1 AND col1 < 100 |
col1 >= 100 AND col1 < 1000 |
col1 >= 1000 |
The following partition function partitions a table or index into 12 partitions, one for each month of a year‘s worth of values in a datetime column.
tsqlCREATE PARTITION FUNCTION [myDateRangePF1] (datetime)
AS RANGE RIGHT FOR VALUES (‘20030201‘, ‘20030301‘, ‘20030401‘,
‘20030501‘, ‘20030601‘, ‘20030701‘, ‘20030801‘,
‘20030901‘, ‘20031001‘, ‘20031101‘, ‘20031201‘);
The following table shows how a table or index that uses this partition function on partitioning column datecol would be partitioned.
Partition | 1 | 2 | ... | 11 | 12 |
---|---|---|---|---|---|
Values | datecol < February 1, 2003 |
datecol >= February 1, 2003 AND datecol < March 1, 2003 |
datecol >= November 1, 2003 AND col1 < December 1, 2003 |
datecol >= December 1, 2003 |
mssqlserver分区表的左值与右值
标签:cep UI 一个 右值 sof class ros partition http
热心网友 时间:2022-04-10 06:20
你若过有磁盘阵列的话性能会高一些