SET ROWCOUNT 5000
WHILE 1=1
BEGIN
DELETE from T_History where LDate = '2010-06-01'
IF @@ROWCOUNT<5000
BREAK;
END
SET ROWCOUNT 0
SET ROWCOUNT 5000
WHILE 1=1
BEGIN
DELETE from T_History where LDate = '2010-06-01'
IF @@ROWCOUNT<5000
BREAK;
END
SET ROWCOUNT 0