Santosh,
There is no "last" and "first" records in relational databases
in terms of location. All records are equal and may be stored physically
anywhere. I guess that may be possible (parsing ROWID and using information
about extent location) to sort records by extent, block and number of record
inside block, but that's not a trivial task.
If you need to select last 10 inserted records, make a trigger
with filling a timestamp into a column and select with sort by this column using
rownum in where condition.
Alexandre
|
- Finding out last 10 records Santosh Varma
- RE: Finding out last 10 records Amjad Saiyed
- Re: Finding out last 10 records Jack van Zanen
- Re: Finding out last 10 records Yechiel Adar
- RE: Finding out last 10 records Alexandre Gorbatchev
- RE: Finding out last 10 records Amjad Saiyed
- Re: Finding out last 10 records Jan Pruner
- RE: Finding out last 10 records Fink, Dan
- RE: Finding out last 10 records Milind Desh
- Re: Finding out last 10 records Alexandre Gorbatchev
- RE: Finding out last 10 records Jamadagni, Rajendra
- Re: Finding out last 10 records Jan Pruner
- RE: Finding out last 10 records Robson, Peter
- RE: Finding out last 10 records Jamadagni, Rajendra
- RE: Finding out last 10 records Robson, Peter