in reply to DBI - retrieving a specific row
I think this will be DB specific, but I know on MySQL you can use select * from table LIMIT 3,1 just to get the fourth result.
Personally, if you are going to be accessing the data sequentially (ie first row, second row etc), you may as well do it in a loop as it will be a lot more effecient on the database servers cache system (it should 'anticipate' that you will request the next record, but if you then start a new query it may dump the cached data).
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: DBI - retrieving a specific row
by S_Shrum (Pilgrim) on Feb 05, 2002 at 10:54 UTC | |
by beebware (Pilgrim) on Feb 05, 2002 at 13:48 UTC | |
Re: Re: DBI - retrieving a specific row
by S_Shrum (Pilgrim) on Feb 07, 2002 at 11:27 UTC |