任何人都可以在oracle中解释强引用游标的实际用途吗? [英] Can anyone explain the practical use of strong ref cursor in oracle?

查看:63
本文介绍了任何人都可以在oracle中解释强引用游标的实际用途吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个混乱的场景,我们应该使用强引用游标和弱引用游标。我无法理解强大的游标中返回类型的好处。任何人都可以帮助我理解这个概念吗?

解决方案

出于同样的原因,您可以在任何编程语言中使用强类型。

最大限度地减少因没有您认为的类型而导致的错误。 />


问题是为什么你应该使用弱类型的refcursors。

我能想到的唯一例子是动态查询。

i have a confusion the scenario where we should use the strong ref cursor and weak ref cursor.i can not understand what is the benefit of return type in strong cursor.can anyone help me in understanding the concept?

解决方案

For the same reason you use strong typing in any programming language.
To minimize bugs caused by not having the type you thought you had.

The question is rather why you should use weakly typed refcursors ever.
And the only example I can think about is dynamic queries.


这篇关于任何人都可以在oracle中解释强引用游标的实际用途吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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