pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rodrigo De León <rdeleonp@gmail.com>
To: pgsql-sql@postgresql.org
Subject: Re: How to return a select query
Date: Sun, 4 Mar 2007 01:44:46 -0500
Message-ID: <a55915760703032244j2a5a98adx54ec3eed397c1214@mail.gmail.com> (raw)
In-Reply-To: <213647.50573.qm@web55602.mail.re4.yahoo.com>
References: <213647.50573.qm@web55602.mail.re4.yahoo.com>

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



view thread (2+ messages)

Message-ID: <a55915760703032244j2a5a98adx54ec3eed397c1214@mail.gmail.com>
Permalink:  ../a55915760703032244j2a5a98adx54ec3eed397c1214@mail.gmail.com/
Also on:    postgresql.org/message-id/a55915760703032244j2a5a98adx54ec3eed397c1214@mail.gmail.com

 · 

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-sql@postgresql.org
  Cc: rdeleonp@gmail.com
  Subject: Re: How to return a select query
  In-Reply-To: <a55915760703032244j2a5a98adx54ec3eed397c1214@mail.gmail.com>

* 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