There is no really lightweight LIMIT in DB2 in MySQL, although you can enable MySQL compatibility when you are in DB2 for Linux / Unix / Windows:
db2set DB2_COMPATIBILITY_VECTOR=MYS db2stop db2start
Alternatively, you can use the window function ROW_NUMBER () to get something like this:
SELECT * FROM ( SELECT ROW_NUMBER() OVER (ORDER BY id) AS rn ,S.* FROM your_table AS S ) AS A WHERE rn BETWEEN 10 AND 20
source share