Contents

1
2


1 #

襷 DELETE襯 觜襯願 覦覯 れ 蟆企手 企Ν る 譬 る螳 蟆譴 蟆 螳. 覃 DELETE襯 觜襯願 覦覯 蠍 覓語企. INSERT Bulk Insert朱 蟆 讌襷 DELETE, UPDATE 觜襯願 覦覯 . OLTP蟆曙 一企ゼ 蟆 覿襯 譴 訖襷 Lock 覓語螳 煙 レ 譴. 麹, 覯 曙企 曙れ錆伎朱 觚襦轟 覦 . 伎 豕 覿襦 蟆 譴. ろ 2005覯覿磯 DELETE, UPDATE覓語 TOP覓語レ . 蠏碁覩襦 DELETE襯 襭襯 襴覃伎 覿襯 覯 譯殊伎 . れ 蠏 .

2 #

create table #temp
(
	seq int
,	dt char(8)
)

insert #temp values(1,'20100101')
go 1000
insert #temp values(1,'20100102')
go 1000

while(1=1)
begin
	delete top(10) a 
	from #temp a
	where dt <= '20100101'
	
	if @@rowcount = 0 
		break
end