【发布时间】:2018-12-14 07:00:45
【问题描述】:
【问题讨论】:
【问题讨论】:
在 SQL 2016 及更高版本中,作为一种解决方法,您可以改为在表上创建非聚集列存储索引。该表将保留其聚集索引(或堆),并且可以利用它的查询将使用额外的列存储。
例如:
drop table if exists cs_test
create table cs_test (a int primary key, b int)
create nonclustered columnstore index ncci_test on cs_test(a,b)
go
declare c cursor local for select * from cs_test
【讨论】: