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

Return data from function

From: "Alexander B(dot)" <burbello3000(at)yahoo(dot)com(dot)br>
To: "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: Return data from function
Date: 2007-04-17 19:17:36
Message-ID: 46251D50.2000601@yahoo.com.br (view raw or flat)
Thread:
Lists: pgsql-admin
Hello,

I need to create a function that find data over 3 tables, merge and
return data.
With example can be specified more clearly:

1.1 Find all addresses code;
1.2 For each addresses code, get address, complement and city on the
first table;
1.3 For each addresses code, get address, complement and city on the
second table;
1.4 Merge result from first and second tables and return to the function;

I would like to do not using cursor.
Do you have any ideas how to implement?

Thanks in advance.

Responses

pgsql-admin by date

Next:From: Carol WalterDate: 2007-04-17 20:05:54
Subject: Auto vacuum
Previous:From: Adam RadłowskiDate: 2007-04-17 18:48:29
Subject: Re: what index is faster to scan

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