Re: How to get back the current count of a auto incrementing number. - Mailing list pgsql-general

From Sean Davis
Subject Re: How to get back the current count of a auto incrementing number.
Date
Msg-id F831E2CB-7123-11D9-B36B-000D933565E8@mail.nih.gov
Whole thread Raw
In response to How to get back the current count of a auto incrementing number.  (sid tow <siddy_tow@yahoo.com>)
List pgsql-general
On Jan 28, 2005, at 6:36 AM, sid tow wrote:

> hi
>
>      How to get the current value of a auto
> incrementing number generated using CREATE SEQUENCE
> seqname START 1
>
> Is there any way and if yes what is it. Can we run a
> select query and may be a inbuilt function which will
> return the current value of that number?

Look at:

http://www.postgresql.org/docs/8.0/interactive/functions-sequence.html

Sean


pgsql-general by date:

Previous
From: Shridhar Daithankar
Date:
Subject: Re: How to get back the current count of a auto incrementing number.
Next
From: Mike Rylander
Date:
Subject: Re: Splitting queries across servers