我想更改函数代码。 如果我使用
CREATE FUNCTION take_proxy (VARCHAR(255)) ....
我得到函数“take_proxy”已经存在且具有相同的参数类型
我应该首先尝试删除函数还是有一些语法适合这种情况?
最佳答案
像往常一样,the fine manual是该去的地方:
CREATE [ OR REPLACE ] FUNCTION
CREATE OR REPLACE FUNCTION will either create a new function, or replace an existing definition.
关于postgresql - 如何替换postgres中的函数?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31278993/