我们如何在存储过程中定义输出参数大小? [英] How can we define output parameter size in stored procedure?

查看:26
本文介绍了我们如何在存储过程中定义输出参数大小?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在存储过程中定义输出参数大小?

How can we define output parameter size in stored procedure?

推荐答案

你不能.当然,您可以控制将多少数据放入存储过程的 OUT 参数中.如果需要,您可以创建一个大小合适的局部变量来保存数据,然后将该变量的值分配给 OUT 参数.

You can't. Of course, you are in control of how much data you put into the OUT parameter in the stored procedure. If you want you can create a sized local variable to hold the data and then assign the value of that variable to the OUT parameter.

调用程序确定接收 OUT 参数的变量的大小.

The calling program determines the size of the variable that receives the OUT parameter.

这篇关于我们如何在存储过程中定义输出参数大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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