如何在PL/pgSQL中创建嵌套函数? [英] How do I create a nested function in PL/pgSQL?
本文介绍了如何在PL/pgSQL中创建嵌套函数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在PL/pgSQL中创建一个函数,其中包含几个嵌套(或内部)函数.这样,我可以将问题分解为较小的部分,但无法在此功能之外访问较小的部分.
I would like to create a function in PL/pgSQL with a couple of nested (or inner) functions within it. This way I can break the problem down into smaller pieces but not have my smaller pieces accessible outside of this function.
是否可以在PL/pgSQL中执行此操作?如果可以,怎么办?
Is it possible to do this in PL/pgSQL? If so, how?
推荐答案
PLpgSQL不支持嵌套函数.该仿真没有任何意义,并且是无用的.
Nested functions are not supported by PLpgSQL. The emulation has not any sense and it is nonproductive.
这篇关于如何在PL/pgSQL中创建嵌套函数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文