怎么使用OUT参数

技术怎么使用OUT参数本篇内容介绍了“怎么使用OUT参数”的有关知识,在实际案例的操作过程中,不少人都会遇到这样的困境,接下来就让小编带领大家学习一下如何处理这些情况吧!希望大家仔细阅读,能够学有所成!我创建了下面这个过

本文介绍了“如何使用OUT参数”的知识。很多人在实际案例操作中都会遇到这样的困难。接下来,让边肖带领大家学习如何应对这些情况!希望大家认真阅读,学点东西!

我创建了以下流程:

creatorreplaceprocesseplch _ proc(

number _ inINNUMBER

,string_outOUTVARCHAR2)

开始

IFnumber_in0

然后

string _ out :=TO _ CHAR(number _ in);

ENDIF

END

/然后我执行了这个块:

声明

l _ stringvarchar 2(10);

开始

DBMS _ Output . put _ line(' String=' | | l _ String);

plch_proc(1,l _ string);

DBMS _ Output . put _ line(' String=' | | l _ String);

plch_proc(-1,l _ string);

DBMS _ Output . put _ line(' String=' | | l _ String);

END

/我将在屏幕上看到什么输出?

(一)

字符串=

字符串=1

字符串=1(B)

字符串=

字符串=1

字符串=(C)

字符串=

字符串=

字符串=1(D)

未处理的异常:

ora-0150: out argumentnotassignedvalue答案b

“如何使用OUT参数”到此结束。感谢阅读。如果你想了解更多行业,关注网站,边肖将为大家输出更多高质量的实用文章!

内容来源网络,如有侵权,联系删除,本文地址:https://www.230890.com/zhan/76882.html

(0)

相关推荐