tags:

views:

79

answers:

3

I want to select the records from the table starting from 3rd row. How this can achieved with LIMIT?

A: 

Like this:

SELECT * FROM MyTable LIMIT 2, 18446744073709551615;

(The offset is zero-based)

SLaks
-1, you've edited this answer several times with multiple incorrect answers.
rjh
@RJH: This version is correct. That's what editing is for.
SLaks
Actually it's not, you need to put the word "Limit" in it. (Edit: now fixed)
p.g.l.hall
Thanks; I forgot to.
SLaks
+2  A: 

From the MySQL Documentation:

To retrieve all rows from a certain offset up to the end of the result set, you can use some large number for the second parameter. This statement retrieves all rows from the 96th row to the last:

SELECT * FROM tbl LIMIT 95,18446744073709551615;

pioto
A: 

i am giving syntax

SELECT field1, field2,...fieldN table_name1, table_name2... [WHERE Clause] [OFFSET M ][LIMIT N]

Vikram Phaneendra