Received: from hotmail.com (f228.law14.hotmail.com [64.4.21.228]) by postgresql.org (Postfix) with ESMTP id C3E784759C4 for ; Thu, 25 Jul 2002 12:48:21 -0400 (EDT) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 25 Jul 2002 09:48:25 -0700 Received: from 213.29.16.6 by lw14fd.law14.hotmail.msn.com with HTTP; Thu, 25 Jul 2002 16:48:25 GMT X-Originating-IP: [213.29.16.6] From: "omid omoomi" To: pgsql-sql@postgreSQL.org Subject: Re: Last record Date: Thu, 25 Jul 2002 16:48:25 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 25 Jul 2002 16:48:25.0429 (UTC) FILETIME=[181F0850:01C233FB] X-Archive-Number: 200207/402 X-Sequence-Number: 8780 select * from foo_table order by oid desc limit 1; >From: Chris Ruprecht >To: "Leao Torre do Vale" >, >CC: Jan Wieck >Subject: Re: [SQL] Last record >Date: Wed, 24 Jul 2002 13:56:50 -0400 > >Select * from where <...> desc limit 1; > >Desc = from the bottom up, limit 1 = just one record. > >Best regards, >Chris > >On Wednesday 24 July 2002 10:36 am, Leao Torre do Vale wrote: > > Dear Sir, > > > > If you already have the answer of the question below please, send to me. > > > > Best Regards > > > > Leao > > > > Maputo - Mozambique > > > > How can select one field of last > > record of table? > > > > (ex: SELECT LAST ....) > > > > Thanks > >---------------------------(end of broadcast)--------------------------- >TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org _________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx