Returning more than one value from a stored procedure - Mailing list pgsql-novice

From Atif Jung
Subject Returning more than one value from a stored procedure
Date
Msg-id AANLkTikgwIG5FT2CyBLbqVMUekLmwWn1isVHf_7nqtSL@mail.gmail.com
Whole thread Raw
Responses Re: Returning more than one value from a stored procedure
Re: Returning more than one value from a stored procedure
List pgsql-novice
Hi,
 
I'm having difficulty working out the correct syntax to return more than one value from a stored procedure. I wish to return an INTGER and a string
 
CREATE or REPLACE FUNCTION testproc(val1 (CHAR9), val2 CHAR(4)) RETURNS INTEGER, CHAR(640) AS $$
 
The above is incorrect but what is the correct syntax?
 
Thanks

Atif


pgsql-novice by date:

Previous
From: "Jean-Yves F. Barbier"
Date:
Subject: Re: how to extract and use a string like a constraint?
Next
From: "A. Kretschmer"
Date:
Subject: Re: Returning more than one value from a stored procedure