use Stored procedure return a tabel(存储过程返回table)

存储过程返回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编辑  收藏  举报

导航