38

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
  • 36,131
  • 31
  • 148
  • 228

1 Answers1

45

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

Community
  • 1
  • 1
George Marian
  • 2,623
  • 18
  • 21