_覓 | 覦覈襦 | 豕蠏手 | 殊螳 | 譯殊碁 |
|
Force Seek 螳襦 碁煙るゼ 郁鍵(?) 貎朱Μ 碁. 襯 覲企 所 . ろ碁ゼ 譴觜襯 .
use tempdb go set nocount on set statistics io off --drop table force_seek_table create table force_seek_table ( col1 int identity not null, col2 tinyint not null ); go begin tran; declare @i int; set @i = 1; while (@i <= 1000000) begin if (@i <=100000) insert into force_seek_table (col2) values (10); if (@i > 100000 and @i <= 1000000) insert into force_seek_table (col2) values (90); set @i = @i + 1; end commit; go create nonclustered index force_seek_table on force_seek_table (col2); go れ 貎朱Μ襯 ろ 覲伎.
select * from force_seek_table where col2 = 10; ![]() SQL Server 牛磯伎 れ . Force Seek 碁ゼ 譯朱 企至 蟾? 轟壱 Index Seek .
select * from force_seek_table with (forceseek) where col2 = 10; ![]()
鏤
|
讌ろ 螳豢 殊 覲企 一企 覓伎 覦蟆 譴 . 豺谿企 危伎. 蠏朱蓋朱 蟲 螻 襯. 蟲郁襯 覓企Μ 豺谿 企 讌豺讌 給. 螻 襴れ 覦蟆 蠍磯ゴ. 覲伎譴 譯 給ゃ (豺朱Υ讌觚) |