存储过程返回table
CREATE PROCEDURE a
x INT
AS
SELECT * FROM TABLE WHERE XX > x -- no RETURN
DECLARE @a INT = 1
CREATE @VarTable Table
(
*
)
INERT @VarTable
EXEC A @a
posted on 2011-03-23 14:45 青春的虎子 阅读(527) 评论(0) 编辑 收藏 举报