我正在使用sql server,我需要为列添加索引,当添加索引时它会给我错误the operation 'alter table add index' is not supported with memory optimized tables.
,有谁能告诉我如何解决这个问题?这是我的表结构
CREATE TABLE "tb_Episode" (
"ID" INT NOT NULL,
"EpDataID" INT NULL DEFAULT NULL,
"UploadID" INT NULL DEFAULT NULL,
"CustID" INT NULL DEFAULT NULL,
"BranchID" INT NULL DEFAULT NULL,
"Branch" VARCHAR(20) NULL DEFAULT NULL,
"LastName" VARCHAR(19) NULL DEFAULT NULL,
"FirstName" VARCHAR(12) NULL DEFAULT NULL,
"Middle" VARCHAR(1) NULL DEFAULT NULL,
"MRN" INT NULL DEFAULT NULL,
"MedicareNbr" VARCHAR(10) NULL DEFAULT NULL,
"EpStart" DATE NULL DEFAULT NULL,
"EpEnd" DATE NULL DEFAULT NULL,
"SOCDate" DATE NULL DEFAULT NULL,
"DOB" DATE NULL DEFAULT NULL,
"SysBranch" VARCHAR(24) NULL DEFAULT NULL,
"PhyLastName" VARCHAR(24) NULL DEFAULT NULL,
"PhyFirstName" VARCHAR(13) NULL DEFAULT NULL,
"SNVisits" INT NULL DEFAULT NULL,
"PTVisits" INT NULL DEFAULT NULL,
"OTVisits" INT NULL DEFAULT NULL,
"HHAVisits" INT NULL DEFAULT NULL,
"MSWVisits" INT NULL DEFAULT NULL,
"STVisits" INT NULL DEFAULT NULL,
PRIMARY KEY ("ID")
)
;
答案 0 :(得分:-1)
使用# ints
rand(10)
rand(10..20)
# floats
rand(1.5)
rand(6.2..18.289)
语句代替CREATE INDEX
(对于非内存优化表)。
ALTER TABLE ... ADD INDEX