摘要:
declare @UserName varchar(400)declare @EM varchar(400)declare pcurr cursor for select UserName, ErrorMessage from ErrorLogopen pcurr fetch next from pcurr into @UserName,@EMwhile (@@fetch_status = 0) begin --set @Str=@Str+@ProductName print @UserName print @EM fetch next from pcurr into @User... 阅读全文