我是pgadmin-4的新手,postgressql,我不知道如何使用datetime参数在pgadmin中执行存储过程?
CREATE OR REPLACE FUNCTION Check(a integer, b integer, startdate timestamp without time zone, enddate timestamp without time zone)我怎么能把它赶出来。我被逮捕了:
SELECT "Check"(56, 0,'2018-07-07','2018-07-09');但它给了我这样的错误:
函数检查(整数、整数、未知、未知)不存在。
发布于 2018-07-09 09:54:43
你可以检查两件事:
-- quoted function's name: "Check"
CREATE OR REPLACE FUNCTION "Check"(a integer, b integer,
startdate timestamp without time zone,
enddate timestamp without time zone)并使用显式cast:
-- should work as-is
SELECT "Check"(56, 0,'2018-07-07','2018-07-09');
--with explicit cast
SELECT "Check"(56, 0,'2018-07-07'::timestamp without time zone,
'2018-07-09'::timestamp without time zone);https://stackoverflow.com/questions/51242324
复制相似问题