是否可以在sql server、mysql或oracle中调用用户定义函数中的存储过程?
发布于 2012-12-23 05:26:30
您可以使用扩展的存储过程或call the stored procedure from within a function using SQL Server进行欺骗和查询。
通常,您希望您的函数是确定性的-即给定相同的数据集,它总是返回相同的结果。查看此Microsoft article on deterministic and non-deterministic functions to understand the restrictions.
这取决于你想用它做什么。有一个健康的机会,你想在你的函数中做一些你不应该尝试做的事情,因为你来自过程化或非基于集合的编程背景。
https://stackoverflow.com/questions/12843788
复制相似问题