Seleziona la riga successiva di seguito:
SELECT * FROM Example WHERE id < 3 ORDER BY id DESC LIMIT 1
Seleziona la riga successiva sopra:
SELECT * FROM Example WHERE id > 3 ORDER BY id LIMIT 1
Seleziona entrambi in una query, ad es. usa UNION :
(SELECT * FROM Example WHERE id < 3 ORDER BY id DESC LIMIT 1)
UNION
(SELECT * FROM Example WHERE id > 3 ORDER BY id LIMIT 1)
Questo cosa intendi?