From: Alvaro Herrera <alvherre@commandprompt.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 15:36:50 -0300
Message-ID: <20061130183649.GF19218@alvh.no-ip.org> (raw)
In-Reply-To: <55c095e90611301030t6b380e64rc3b614acd5759297@mail.gmail.com>
References: <55c095e90611301030t6b380e64rc3b614acd5759297@mail.gmail.com>
Ezequias Rodrigues da Rocha wrote:
> Hi list,
>
> It is possible to make a selection like
>
> Select (list 1 to 1000);
Sure, use the generate_series() function.
select * from generate_series(1, 1000);
--
Alvaro Herrera http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support
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: alvherre@commandprompt.com, ezequias.rocha@gmail.com
Subject: Re: Select (1-3)
In-Reply-To: <20061130183649.GF19218@alvh.no-ip.org>
* 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