pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Linuxero <linuxero2@yahoo.com>
To: pgsql-docs@postgresql.org
Subject: question about functions
Date: Wed, 27 Jun 2001 22:21:46 -0300
Message-ID: <00d301c0ff70$b44b7d00$3f40410a@agarin> (raw)
References: <006401c0ff66$080164b0$3f40410a@agarin>
	<3B3B2646.7A108838@zhengmai.com.cn>

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




Message-ID: <00d301c0ff70$b44b7d00$3f40410a@agarin>
Permalink:  ../00d301c0ff70$b44b7d00$3f40410a@agarin/
Also on:    postgresql.org/message-id/00d301c0ff70$b44b7d00$3f40410a@agarin

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-docs@postgresql.org
  Cc: linuxero2@yahoo.com
  Subject: Re: question about functions
  In-Reply-To: <00d301c0ff70$b44b7d00$3f40410a@agarin>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox