I’m wonder if there is way to use LIMIT operator to always include first row in result set. I mean regardless of any range specified. For Ex:
SELECT * FROM `table` LIMIT 5, 10
should return first row and row 6 to 15 or:
SELECT * FROM `table` LIMIT 200, 30
should return first row and row 201 to 231. Is there a way to do that ?
Edit First row id is always 0
I don’t see another way :
or as Pointed by Scott, with new infos 😉
don’t forget brackets :