46

Possible Duplicate:
Mysql Offset Infinite rows

Is it possible to specify a query in MySQL with a 'offset' but without a 'limit'. For example:

SELECT * FROM countries OFFSET 2

Fails, but:

SELECT * FROM COUNTRIES LIMIT 8 OFFSET 2

Works fine. I'd like to just specify the offset. Thanks!

Community
  • 1
  • 1
Kevin Sylvestre
  • 37,288
  • 33
  • 152
  • 232

1 Answers1

50

Basically, no. Limit must be supplied. See this SO question for a solution.

Community
  • 1
  • 1
George Marian
  • 2,680
  • 20
  • 21