Get the write method of M to N:
Select * from (SELECT ROWNUM RM, A. * from Tablename a where row <= n) Where rm> = m