1
我已經在SQL Server中使用以下功能創建了四個分區。按其分區號合併兩個數據庫表分區
CREATE PARTITION FUNCTION fnYearsRT(DateTime)
AS RANGE RIGHT FOR VALUES
('01/01/2005', '01/01/2006', '01/01/2007', '01/01/2008');
CREATE PARTITION SCHEME date_partscheme
AS PARTITION fnYearsRT
TO (Filegroup1, Filegroup2, Filegroup3, Filegroup4,Filegroup5)
CREATE TABLE Sales.ReturnsArchive
(
ReturnID int IDENTITY NOT NULL,
ProductID int NOT NULL,
CustomerID int NOT NULL,
ReturnDate datetime NOT NULL,
ReturnReason char(20) NULL
)
ON date_partscheme (ReturnDate)
插入數據後,我有以下統計
Partition COUNT
2 5151
3 19353
4 51237
5 45576
我要合併分區2和3,但我不能決定哪些範圍,我應該在合併功能給。