36

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
  • 34,782
  • 30
  • 138
  • 226

1 Answers1

45

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

Community
  • 1
  • 1
George Marian
  • 2,630
  • 17
  • 21