I do know how to access last N records from the table i.e,
SELECT * FROM table_name ORDER BY auto_incremented_id DESC LIMIT N;
There are N records means and table records keep incrementing every day, each record having unique serial ID from 1 to N. now i want to retrieve 10 records of last N-10 rows.
please consider the example
Record 1
Record 2
Record 3
Record 4
Record 5
Record 6
Record N-M
Record N-2
Record N-1
Record N
How do i can retrieve N-2 to N-M rows
The solution required for an website - 1st page displays last 10 records, 2nd Page displays last next 10 records from the reverse except rows are displayed in first page and it goes on up to 1st record of the table.