CREATE table comp_tb
(
a tinyint
)
insert into comp_tb values('4')
insert into comp_tb values('1')
insert into comp_tb values('5')
insert into comp_tb values('6')
insert into comp_tb values('10')
insert into comp_tb values('3')
insert into comp_tb values('2')
insert into comp_tb values('8')
SELECT * from comp_tb ct --as order of insert
create NONCLUSTERED INDEX NCI_a ON comp_tb(a)
SELECT * from comp_tb ct --sorts in acending order
drop INDEX NCI_a ON comp_tb
create CLUSTERED INDEX CI_a ON comp_tb(a)
SELECT * from comp_tb ct -- sorts in acending order
drop INDEX CI_a ON comp_tb
那么聚集索引和非聚集索引在数据创建后就对其进行物理排序?
根据我的只读聚集索引是否进行物理排序?