Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Limit the retrieved result of a select...

Status
Not open for further replies.

mitch77

Programmer
Nov 16, 2000
42
PT
I have made a select, that retrieves +/- 3000000 records, and i would like to know how can i fetch the records retrieved, for example the first 100 records, the next 100 records, etc...

thanks, Mitch
 
Mitch:
Take a look at the FETCH FIRST x ROWS clause which allows you to retrieve a certain number of rows. But, if you are trying to retrieve the rows in batches you may have to use a cursor.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top