How can we define output parameter size in stored procedure?(我们如何在存储过程中定义输出参数大小?)
问题描述
如何在存储过程中定义输出参数大小?
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.
这篇关于我们如何在存储过程中定义输出参数大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:我们如何在存储过程中定义输出参数大小?


基础教程推荐
- SQL Server 中单行 MERGE/upsert 的语法 2021-01-01
- SQL Server 2016更改对象所有者 2022-01-01
- 将数据从 MS SQL 迁移到 PostgreSQL? 2022-01-01
- Sql Server 字符串到日期的转换 2021-01-01
- 无法在 ubuntu 中启动 mysql 服务器 2021-01-01
- 如何在 SQL Server 的嵌套过程中处理事务? 2021-01-01
- 使用pyodbc“不安全"的Python多处理和数据库访问? 2022-01-01
- SQL Server:只有 GROUP BY 中的最后一个条目 2021-01-01
- ERROR 2006 (HY000): MySQL 服务器已经消失 2021-01-01
- 在 VB.NET 中更新 SQL Server DateTime 列 2021-01-01