Does SQL Server support hash indexes?

亡梦爱人 提交于 2020-01-14 02:49:11

问题


Are all the indexes in SQL Server B Tree?
Surely primary keys and foreign should be hash based indexes?


回答1:


Not all indexes in SQL Server are B-tree indexes (SQL Server 2012 added columnstore indexes which are a bit different), but there is no such thing as a hash-based index there (yet).




回答2:


Here's a pretty straight forward article explaining that all indices are b tree indices in SQL Server:

http://msdn.microsoft.com/en-us/library/ms177443(v=sql.105).aspx

I think if you want to get more into the nitty gritty of specific RDBMS' implementations, you could try posting to http://dba.stackexchange.com



来源:https://stackoverflow.com/questions/11890929/does-sql-server-support-hash-indexes

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!