I have a stored procedure that returns rows:
(我有一个返回行的存储过程:)
CREATE PROCEDURE MyProc
AS
BEGIN
SELECT * FROM MyTable
END
My actual procedure is a little more complicated, which is why a sproc is necessary.
(我的实际程序有点复杂,这就是为什么有必要使用sproc的原因。)
Is it possible to select the output by calling this procedure?
(是否可以通过调用此过程来选择输出?)
Something like:
(就像是:)
SELECT * FROM (EXEC MyProc) AS TEMP
I need to use SELECT TOP X
, ROW_NUMBER
, and an additional WHERE
clause to page my data, and I don't really want to pass these values as parameters.
(我需要使用SELECT TOP X
, ROW_NUMBER
和一个额外的WHERE
子句来分页我的数据,我真的不想将这些值作为参数传递。)
ask by jonathanpeppers translate from so 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…