Received: from candle.pha.pa.us (candle.navpoint.com [162.33.245.46]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id f0IINX082230 for ; Thu, 18 Jan 2001 13:23:33 -0500 (EST) (envelope-from pgman@candle.pha.pa.us) Received: (from pgman@localhost) by candle.pha.pa.us (8.9.0/8.9.0) id NAA28799; Thu, 18 Jan 2001 13:23:23 -0500 (EST) From: Bruce Momjian Message-Id: <200101181823.NAA28799@candle.pha.pa.us> Subject: Re: Selecting Current value from a sequence In-Reply-To: <3A688085.23E57E79@mondo-live.com> "from Najm Hashmi at Jan 19, 2001 12:59:34 pm" To: Najm Hashmi Date: Thu, 18 Jan 2001 13:23:23 -0500 (EST) CC: "pgsql-sql@postgresql.org" X-Mailer: ELM [version 2.4ME+ PL77 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Archive-Number: 200101/220 X-Sequence-Number: 886 See my book on sequences: http://www.postgresql.org/docs/awbook.html currval() is probably what you need. > 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 -:). > Regards, Najm > > -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 853-3000 + If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup. | Drexel Hill, Pennsylvania 19026