pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Aaron Bono <postgresql@aranya.com>
To: Ezequias Rodrigues da Rocha <ezequias.rocha@gmail.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Select (1-3)
Date: Thu, 30 Nov 2006 12:35:36 -0600
Message-ID: <bf05e51c0611301035l42fa2178n398c3fc2c281ead2@mail.gmail.com> (raw)
In-Reply-To: <55c095e90611301030t6b380e64rc3b614acd5759297@mail.gmail.com>
References: <55c095e90611301030t6b380e64rc3b614acd5759297@mail.gmail.com>

On 11/30/06, Ezequias Rodrigues da Rocha <ezequias.rocha@gmail.com> wrote:
>
> Hi list,
>
> It is possible to make a selection like
>
> Select (list 1 to 1000);
>
> And get the rows ?
>
> producao=# select ...;
>    row
> ---------
>    1
>    2
>    3
> .
> .
> .
> 1000
>

*select * from generate_series(1, 1000);*


See
http://oreillynet.com/pub/a/databases/2006/09/07/plpgsql-batch-updates.html?page=2

-- 
==================================================================
   Aaron Bono
   Aranya Software Technologies, Inc.
   http://www.aranya.com
   http://codeelixir.com
==================================================================

view thread (4+ messages)  latest in thread

Message-ID: <bf05e51c0611301035l42fa2178n398c3fc2c281ead2@mail.gmail.com>
Permalink:  ../bf05e51c0611301035l42fa2178n398c3fc2c281ead2@mail.gmail.com/
Also on:    postgresql.org/message-id/bf05e51c0611301035l42fa2178n398c3fc2c281ead2@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: postgresql@aranya.com, ezequias.rocha@gmail.com
  Subject: Re: Select (1-3)
  In-Reply-To: <bf05e51c0611301035l42fa2178n398c3fc2c281ead2@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