I want to read data in blocks of say 10k records from a database.
I found Result limits on wikipedia and it seems obvious that this can\'t done with sql in a portabl
There is no portable way of doing that on plain SQL, because different SQL Engines use different syntaxes for that.
Use a Database Abstraction Layer, or DBAL.
http://en.wikipedia.org/wiki/Database_abstraction_layer
http://jonasbandi.net/wiki/index.php/ORM_Solutions_for_Java