0
我有以下简单的查询:避免排序警告在执行计划
create table #Table(Id bigint primary key clustered)
insert into #Table (Id)
select Id
from dbo.MyTable
where InsertDate >= '01.04.2016'
and InsertDate <= '30.04.2016'
option (maxdop 1)
但在执行计划,我总是得到一个排序警告,甚至我也不想用排序。我怎样才能避免这种(排序交战)? 谢谢
可能的重复... http://stackoverflow.com/questions/14219533/why-is-there-a-sort-showing-up-in-my-execution-plan – William
谢谢,我解决了我的问题 FYI :选项(重新编译,maxdop 1) :) :) :) – JassyJov