Re: How to get back the current count of a auto

From: Csaba Nagy <nagy(at)ecircle-ag(dot)com>
To: sid tow <siddy_tow(at)yahoo(dot)com>
Cc: psql mailing list <pgsql-general(at)postgresql(dot)org>
Subject: Re: How to get back the current count of a auto
Date: 2005-01-28 11:56:58
Message-ID: 1106913418.19443.180.camel@localhost.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Sid,

Postgres has an excellent documentation. You can find about what you
asked here:
http://www.postgresql.org/docs/8.0/static/functions-sequence.html
It always pays off to read the docs first.

Cheers,
Csaba.

On Fri, 2005-01-28 at 12:36, 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?
>
> Regards.
>
>
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Mail - Find what you need with new enhanced search.
> http://info.mail.yahoo.com/mail_250
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
> (send "unregister YourEmailAddressHere" to majordomo(at)postgresql(dot)org)

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Shridhar Daithankar 2005-01-28 11:58:33 Re: How to get back the current count of a auto incrementing number.
Previous Message sid tow 2005-01-28 11:36:40 How to get back the current count of a auto incrementing number.