How can I retrieve only the first n rows, second n rows of a database using a particular WHERE clause ?

Lennart Jorelid

Use the Statement.setFetchSize method to indicate the size of each database fetch. Note that this method is only available in the Java 2 platform. For Jdk 1.1.X and Jdk 1.0.X, no standardized way of setting the fetch size exists. Please consult the Db driver manual.