question about functions - Mailing list pgsql-docs

From Linuxero
Subject question about functions
Date
Msg-id 00d301c0ff70$b44b7d00$3f40410a@agarin
Whole thread Raw
In response to RE: Hello  ("Linuxero" <linuxero2@yahoo.com>)
List pgsql-docs
Hi:

I'm interested in postgres because I want to use transactions
and store procedures (or functions).
I have created this table:
Table1
    c1 int4
    c2 varchar(5)

And this function

Name: Test
Return: setof int4
Language: sql

"select * from Table1";

But, this is not working because this funcion only return
a set of int4 results... I should replace this to
"select c1 from Table1".

My question is:
How can i return a select with two o more colums?
Like MS Sql server store procedures does.
Is it possible?

Thanks in advance.
Regards
---
EL Linuxero




_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


pgsql-docs by date:

Previous
From: "Linuxero"
Date:
Subject: RE: Hello
Next
From: Weiping He
Date:
Subject: Re: RE: Hello