使用DISTRIBUTE BY HASH子句创建表错误

时间:2017-06-05 08:27:27

标签: sql sql-server

我正在尝试使用以下语法创建一个表但遇到错误

Create Table    RRSMTB.T_Whl_Credit_Inst
(Data_Date Date NOT NULL,
MSTR_FCL_ID Varchar(36) NOT NULL,
Accounting_System_Id Varchar(10) 

DISTRIBUTE BY HASH([MSTR_FCL_ID]),
    PARTITION BY RANGE("DATA_DATE")
    (PART "PART0" STARTING('2014-01-01') IN "RRSS001_LP0",
    PART "PART1" STARTING('2015-01-01') IN "RRSS001_LP0",
    PART "PART2" STARTING('2016-01-01') IN "RRSS001_LP0",
    PART "PART3" STARTING('2017-01-01') IN "RRSS001_LP0",
    PART "PART4" STARTING('2018-01-01') IN "RRSS001_LP0",
    PART "PART5" STARTING('2019-01-01') ENDING('2019-12-31') IN "RRSS001_LP0"); 

error : incorrect syntax near DISTRIBUTE

请帮忙

0 个答案:

没有答案