Home > Database > Mysql Tutorial > body text

SQLSERVER新建表的时候页面分配情况是怎样的?

WBOY
Release: 2016-06-07 17:39:03
Original
1241 people have browsed it

SQLSERVER新建表的时候页面分配情况是怎样的? 再次感谢sqlskill网站和转载sqlskill网站文章并翻译的人,因为您们的转载和翻译让小弟又学习到新的东西o(_)o 文章中用到的工具:查看SQLSERVER内部数据页面的小插件Internals Viewer 参考文章: 在往下看之前,

SQLSERVER新建表的时候页面分配情况是怎样的?

再次感谢sqlskill网站和转载sqlskill网站文章并翻译的人,因为您们的转载和翻译让小弟又学习到新的东西o(∩_∩)o

文章中用到的工具:查看SQLSERVER内部数据页面的小插件Internals Viewer

参考文章:

在往下看之前,请看一下混合区和统一区的解释,如果不明白的话,大家可以百度一下“SQLSERVER混合区 统一区”

统一区:由单个对象所有。区中的所有8页只能由一个对象使用

混合区:最多可由8个对象共享。区中8页的每页可由不同对象所有。但是一页总是只能属于一个对象

 

 

先建立四张表,堆表、聚集索引表、非聚集索引表、聚集索引和非聚集索引表

这些表的特点:一行记录刚好占用一页

我们要先建立一张,分析完毕drop掉表,然后再建立另一张,,这样可以看得更加清楚

新建数据库

1 USE master ALLOCATIONDB ALLOCATIONDB 8 GO

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact [email protected]
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!