请看下面的代码:
DECLARE @ID int
DECLARE @errorflag int
DECLARE Warning_Cursor CURSOR FOR
SELECT TOP 3 ID FROM Warnings
SET @errorflag = @errorflag + @@Error
OPEN Warning_cursor
SET @errorflag = @errorflag + @@Error
FETCH NEXT FROM Warning_cursor INTO @ID
WHILE @@FETCH_STATUS = 0
begin
SELECT @ID
FETCH NEXT FROM Warning_cursor INTO @ID
END
CLOSE Warning_cursor
DEALLOCATE Warning_cursor
游标返回三个表,每个表有一行。如何返回一张三行表?