I have a view in my sql server 2005 db.
I’m using Pythons PyMsSQL to select rows form the view. I’m not necessarily selecting all the rows in the view with this select. For example, I might select based on name or date etc.
How can I page this view? That is, how can I select row 0 to 9, or rows 10 to 19 etc.
Thanks for your help,
Barry
One option is to use the
ROW_NUMBERwindow function toORDER BYdate, name or any other column that guarantees the order between subsequent runs.SQL Statement