hi.. i have a function which has 5 out parameters... can i return those in a postgre function...
Can postgres functions return multiple values???
Collapse
X
-
-
i ll paste an orcale procedure here... i have to convert it into a postgres function...
CREATE OR REPLACE PROCEDURE ORCHCTADDDOCUME NT
(p_inxml IN OUT CLOB,
p_bravainfos OUT VARCHAR2,
p_duptitles OUT VARCHAR2,
p_outxml OUT CLOB,
p_outdocids OUT VARCHAR2
)
AS
will this declaration work in postgresql????Comment
-
but you must change datatypes, there are no varchar2 and clob in postgresqlCode:CREATE OR REPLACE PROCEDURE ORCHCTADDDOCUMENT (IN OUT p_inxml CLOB, OUT p_bravainfos VARCHAR2, OUT p_duptitles VARCHAR2, OUT p_outxml CLOB, OUT p_outdocids VARCHAR2 ) AS
Originally posted by ravystersi ll paste an orcale procedure here... i have to convert it into a postgres function...
CREATE OR REPLACE PROCEDURE ORCHCTADDDOCUME NT
(p_inxml IN OUT CLOB,
p_bravainfos OUT VARCHAR2,
p_duptitles OUT VARCHAR2,
p_outxml OUT CLOB,
p_outdocids OUT VARCHAR2
)
AS
will this declaration work in postgresql????Comment
-
To count rows you can use agregate function COUNT(*). There isn't CLOB type in Postgres so there is no writetoCLOB function. If I'm right you can implement CLOB with varchar.Originally posted by ravystersya ya... i change them.... is there a row count function in postgres and is there a writetoCLOB funciton in postgresComment
Comment