Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: How to find last record in a table?

Re: How to find last record in a table?

From: B. Jones <seismo_at_elvis.com>
Date: 15 Jan 2004 10:08:56 -0800
Message-ID: <e6ca440a.0401151008.3b046f49@posting.google.com>


Well, thanks for all the responses. I get it now...This discussion has been a big help.

seismo_at_elvis.com (B. Jones) wrote in message news:<e6ca440a.0401141103.1a52fb5c_at_posting.google.com>...
> Hey, gang.
> I've been relying on a simple little statement that I THOUGHT would
> show me the last record in a table. I found out today that it's
> unreliable (returned records that were inserted on December 12 when
> there were records from today).
> Here's my statement...
> select * from <table> where rowid = (select max(rowid) from <table>);
>
> What do you guys do to find the last record in a table?
>
> Thanks.
Received on Thu Jan 15 2004 - 12:08:56 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US