Skip site navigation (1) Skip section navigation (2)

question about functions

From: "Linuxero" <linuxero2(at)yahoo(dot)com>
To: <pgsql-docs(at)postgresql(dot)org>
Subject: question about functions
Date: 2001-06-28 01:21:46
Message-ID: 00d301c0ff70$b44b7d00$3f40410a@agarin (view raw, whole thread or download thread mbox)
Lists: pgsql-docs

I'm interested in postgres because I want to use transactions
and store procedures (or functions).
I have created this table:
    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.
EL Linuxero

Do You Yahoo!?
Get your free address at

In response to

pgsql-docs by date

Next:From: Robert KleinDate: 2001-06-28 06:04:33
Subject: Re: hello
Previous:From: LinuxeroDate: 2001-06-28 00:05:22
Subject: RE: Hello

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group