declare @onecount int
set @onecount=10000
while 1=1
begin
delete top(@onecount) from ysh where date<'2016-06-21';
IF (@@rowcount<@onecount) BREAK;
print getdate()
end
转载于:https://www.cnblogs.com/gavin0517/p/6109774.html
declare @onecount int
set @onecount=10000
while 1=1
begin
delete top(@onecount) from ysh where date<'2016-06-21';
IF (@@rowcount<@onecount) BREAK;
print getdate()
end
转载于:https://www.cnblogs.com/gavin0517/p/6109774.html