Hacker News new | past | comments | ask | show | jobs | submit login

row_number() !

As in: SELECT * FROM (SELECT *, row_number() OVER (order by <some column - primary key column would be a good choice>) as rowidx FROM your_table) as numbered WHERE rowidx > ? AND rowid < ?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: