pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Joÿffffffffffe3o Carvalho <joaocarvalho127@yahoo.com.br>
To: pgsql-sql@postgresql.org
Subject: Re: Statistics from Sequences
Date: Thu, 8 Sep 2005 17:53:27 -0300 (ART)
Message-ID: <20050908205327.15632.qmail@web50602.mail.yahoo.com> (raw)
In-Reply-To: <20050908200801.GA84186@winnie.fuhr.org>



Michael Fuhr <mike@fuhr.org> escreveu:
[Please copy the mailing list on replies so others can participate
in and learn from the discussion.]

On Thu, Sep 08, 2005 at 02:32:12PM -0300, Joÿffffffffffe3o Carvalho wrote:
> Can you give me a help about:
> 
> > The min value
> > The max value
> > The increment value
> > The last used number

The example I posted shows how to obtain those values:

CREATE SEQUENCE fooseq;
SELECT * FROM fooseq;

If you want only particular columns then specify them:

SELECT min_value, max_value, increment_by, last_value FROM fooseq;

-- 
Michael Fuhr

---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly


Thank you very much, you've been a great help.

Regards


		
---------------------------------
 Yahoo! Messenger com voz: PROMOÇÃO VOCÊ PODE LEVAR UMA VIAGEM NA CONVERSA. Participe!

view thread (6+ messages)  latest in thread

Message-ID: <20050908205327.15632.qmail@web50602.mail.yahoo.com>
Permalink:  ../20050908205327.15632.qmail@web50602.mail.yahoo.com/
Also on:    postgresql.org/message-id/20050908205327.15632.qmail@web50602.mail.yahoo.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: joaocarvalho127@yahoo.com.br
  Subject: Re: Statistics from Sequences
  In-Reply-To: <20050908205327.15632.qmail@web50602.mail.yahoo.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