存储过程中的特定列调用 [英] specific columns call from stored procedure

查看:80
本文介绍了存储过程中的特定列调用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从另一个存储过程调用时,是否有办法仅返回存储过程中的特定列?


Is there a way to return only specific columns from a stored procedure when called from another stored procedure?

something like

SELECT Col1, Col2 FROM EXEC SP_Temp 'param1'

推荐答案

开始之前这是草率的代码.我永远不会这样做(从另一个这样调用一个proc),如果这样做,我认为您的选择是有限的.但是,由于我知道如何使用Google,因此能够找到 [ ^ ].
This is sloppy code before you start. I would never do this ( call one proc from another like this ) and if you do, I think your options are limited. But, because I know how to use google, I was able to find this[^].


这篇关于存储过程中的特定列调用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆