Re: [SQL] Last record

2002-07-25 Thread omid omoomi
select * from foo_table order by oid desc limit 1; >From: Chris Ruprecht <[EMAIL PROTECTED]> >To: "Leao Torre do Vale" ><[EMAIL PROTECTED]>,<[EMAIL PROTECTED]> >CC: Jan Wieck <[EMAIL PROTECTED]> >Subject: Re: [SQL] Last record >Date: Wed

Re: [SQL] Last record

2002-07-24 Thread Chris Ruprecht
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 > >

Re: [SQL] Last record

2002-07-24 Thread Jan Wieck
Leao Torre do Vale wrote: > How can select one field of last > record of table? There is no such thing as the "last record of a table" in SQL. Somehow you must be able to describe what you mean with "last record" and how to identify that. This would then be translated into a qualification (WHERE

[SQL] Last record

2002-07-24 Thread Leao Torre do Vale
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 lastrecord of table?(ex: SELECT LAST )Thanks