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

Home -> Community -> Usenet -> c.d.o.misc -> Re: Getting the first row from a select

Re: Getting the first row from a select

From: Blabla <Left_at_Right.nl>
Date: 1998/10/02
Message-ID: <3614BDCD.B56F9F04@Right.nl>#1/1

A solution that is used is to add a column, e.g. ID number(10), and create a sequence for that column (ID_SEQ) which is incremented by one each time a row is inserted. Now you can retrieve easily the first row inserted. But remember that the column can be looped, thus when e.g. ID = 9999999999 exists and also ID = 1 exists then of course 9999999999 is the oldest record. Oracle thus not insert records in order of insertion, this has to do with tablespace use etc...

Erwin Received on Fri Oct 02 1998 - 00:00:00 CDT

Original text of this message

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