Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/sql-server/22.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sql server 排序列上的索引_Sql Server_Sorting_Indexing - Fatal编程技术网

Sql server 排序列上的索引

Sql server 排序列上的索引,sql-server,sorting,indexing,Sql Server,Sorting,Indexing,我有一个Int-type排序列,我在其中输入数字来设置记录的排序顺序。我是否需要为这些列编制索引以获得更好的性能 如果要在SELECT语句中使用此列,特别是在WHERE、ORDER BY、GROUP BY、TOP和DISTINCT子句中,则需要为此字段编制索引。 请阅读本文以了解更多有关索引和性能的信息。以防您想了解更多有关索引的信息:链接过期

我有一个Int-type排序列,我在其中输入数字来设置记录的排序顺序。我是否需要为这些列编制索引以获得更好的性能

如果要在SELECT语句中使用此列,特别是在WHERE、ORDER BY、GROUP BY、TOP和DISTINCT子句中,则需要为此字段编制索引。
请阅读本文以了解更多有关索引和性能的信息。

以防您想了解更多有关索引的信息:链接过期