星空网 > 软件开发 > 数据库

转载+自己心得

--删除表DROP TABLE dbo.Person--创建表CREATE TABLE Person(ID INT IDENTITY,NAME CHAR(900))--插入数据DECLARE @ch AS INT=97WHILE @ch<=122BEGIN  INSERT INTO dbo.Person VALUES(REPLICATE(CHAR(@ch),5))  SET @ch=@ch+1END--查询select * from Person--*****************实验结果*****************************----聚集索引(数据页都变成聚集索引页 )CREATE clustered index index_id on person(id)dbcc ind(Test,Person,-1)--查看数据页dbcc traceon(3604)dbcc page(Test,1,237,1)--查看数据页详情dbcc page(Test,1,236,1)-- 查看数据页详情dbcc page(Test,1,236,3)-- 查看分页节点和叶子节点关系--非聚集索引(增加非聚集索引页)create index noindex_name on person(name)dbcc ind(Test,Person,-1)--查看数据页dbcc traceon(3604)dbcc page(Test,1,228,1)--查看数据页详情dbcc page(Test,1,236,3)--- 查看分页节点和叶子节点关系

 

原文链接

 




原标题:转载+自己心得

关键词:

*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。

海运东南亚专线:https://www.goluckyvip.com/tag/97600.html
东南亚货运专线:https://www.goluckyvip.com/tag/97601.html
东南亚专线货运:https://www.goluckyvip.com/tag/97602.html
货运东南亚专线:https://www.goluckyvip.com/tag/97603.html
东南亚cod物流专线:https://www.goluckyvip.com/tag/97604.html
东南亚国际物流专线:https://www.goluckyvip.com/tag/97605.html
长治婚庆女司仪和主持人:https://www.vstour.cn/a/366176.html
北京丰台区水上乐园哪家好玩?:https://www.vstour.cn/a/366177.html
相关文章
我的浏览记录
最新相关资讯
海外公司注册 | 跨境电商服务平台 | 深圳旅行社 | 东南亚物流