【问题标题】:Postgres - Difference between SELECT function() and CALL function()?Postgres - SELECT函数()和CALL函数()之间的区别?
【发布时间】:2019-05-13 10:16:44
【问题描述】:

在 PostgreSQL v11 中, SELECT function() 和 CALL 过程之间的区别? 如果我选择一个过程,则会返回此错误:

错误:public.delete() 是一个过程 要调用过程,请使用 CALL。

【问题讨论】:

标签: postgresql function postgresql-11


【解决方案1】:

无法选择该过程。请注意以下过程和函数之间的基本区别。

 - In PostgreSQL 11, PROCEDURE was added
 - Functions return value but procedures does not return values
 - Transaction can be crated inside procedure and not inside function

【讨论】:

  • Transaction can be crated inside procedure and not inside function - 我不明白你的意思,在函数中有可能创建事务。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2013-02-14
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2012-09-04
  • 2010-10-08
  • 1970-01-01
相关资源
最近更新 更多