Re: last entry

From: "omid omoomi" <oomoomi(at)hotmail(dot)com>
To: mixo(at)beth(dot)uniforum(dot)org(dot)za, pgsql-general(at)postgresql(dot)org
Subject: Re: last entry
Date: 2002-08-16 16:43:15
Message-ID: F29mfEcsvGOAHggdkmc0000b453@hotmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


select * from yourtable order by oid desc limit 1;

>From: mixo <mixo(at)beth(dot)uniforum(dot)org(dot)za>
>To: pgsql-general(at)postgresql(dot)org
>Subject: [GENERAL] last entry
>Date: Fri, 16 Aug 2002 10:33:03 +0200
>
>
>Is it possible to identify the last entry that has been just insterted into
>a table?
>
>
>
>---------------------------(end of broadcast)---------------------------
>TIP 4: Don't 'kill -9' the postmaster

_________________________________________________________________
Join the worlds largest e-mail service with MSN Hotmail.
http://www.hotmail.com

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2002-08-16 17:05:03 Re: Seq scan
Previous Message Stephan Szabo 2002-08-16 16:21:09 Re: Seq scan