Can we call a stored proc from a function?

前端 未结 4 1062
梦谈多话
梦谈多话 2020-12-20 09:42

Can we call a stored procedure from a function in SQL? What\'s the reason?

4条回答
  •  情书的邮戳
    2020-12-20 10:03

    To be efficient a function should be deterministic, i.e. the output should only be depending on the input, so that the result can be cached.

    If you want to call a stored procedure from a function, yout have to specifically make the function non-deterministic.

提交回复
热议问题