pg.ddx.io pgsql-sql@postgresql.org mailing list archive
help / color / mirror / Atom feedHow to return a select query
2+ messages / 2 participants
[nested] [flat]
* How to return a select query
@ 2007-03-03 22:08 Eugenio Flores <eflores767003@yahoo.com.mx>
2007-03-04 06:44 ` Re: How to return a select query Rodrigo De León <rdeleonp@gmail.com>
0 siblings, 1 reply; 2+ messages in thread
From: Eugenio Flores @ 2007-03-03 22:08 UTC (permalink / raw)
To: pgsql-sql
Hello. I would like to know how can I return a select expresion, and stored in a variable, as cursors, but without the need of fetching it, and just to get the hole resultset.
For example. I want to get this query: Select * from table1, and stored in a variable that I can return to, like a rowtype variable.
What I want is to call this function from a client aplication and show the result in a table. Like a JTable in java.
Thanks in advance for your help.
Greetings.
___________________________________________________________
Do You Yahoo!?
La mejor conexión a Internet y <b >2GB</b> extra a tu correo por $100 al mes. http://net.yahoo.com.mx
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: How to return a select query
2007-03-03 22:08 How to return a select query Eugenio Flores <eflores767003@yahoo.com.mx>
@ 2007-03-04 06:44 ` Rodrigo De León <rdeleonp@gmail.com>
0 siblings, 0 replies; 2+ messages in thread
From: Rodrigo De León @ 2007-03-04 06:44 UTC (permalink / raw)
To: pgsql-sql
On 3/3/07, Eugenio Flores <eflores767003@yahoo.com.mx> wrote:
> Hello. I would like to know how can I return a select expresion, and stored
> in a variable, as cursors, but without the need of fetching it, and just to
> get the hole resultset.
>
> For example. I want to get this query: Select * from table1, and stored in a
> variable that I can return to, like a rowtype variable.
>
> What I want is to call this function from a client aplication and show the
> result in a table. Like a JTable in java.
>
> Thanks in advance for your help.
>
> Greetings.
See:
http://www.postgresql.org/docs/8.2/static/queries-table-expressions.html#QUERIES-TABLEFUNCTIONS
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2007-03-04 06:44 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2007-03-03 22:08 How to return a select query Eugenio Flores <eflores767003@yahoo.com.mx>
2007-03-04 06:44 ` Rodrigo De León <rdeleonp@gmail.com>
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