Re: Selecting Current value from a sequence

From: George Moga <george(at)cicnet(dot)ro>
To: Najm Hashmi <najm(at)mondo-live(dot)com>, pgsql-sql(at)postgresql(dot)org
Subject: Re: Selecting Current value from a sequence
Date: 2001-01-18 18:18:15
Message-ID: 3A673367.D8D5F99B@cicnet.ro
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Najm Hashmi wrote:

> Hi all,
> It is a very simple but I am not able to recall how to do it.... I
> just need to find out the current value of a seq. It is very simple
> select statement but I can't recall it... Help me please before I get
> myself get fired -:).
>

Try:

SELECT last_value FROM sequence_name;

> Regards, Najm

For me works (PostgreSQL 7.0.3, Mandrake Linux 7.2).

George Moga,
Data Systems Srl
Slobozia, ROMANIA

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Bruce Momjian 2001-01-18 18:23:23 Re: Selecting Current value from a sequence
Previous Message Josh Berkus 2001-01-18 18:05:06 Re: Selecting Current value from a sequence