mysql - OFFSET...FETCH not working on PATSTAT Online -
i updating queries mysql t-sql patstat online has moved over.
the following worked fine in mysql, returning 700,000 rows starting @ row 700,001, ordered appln_id:
select * tls201_appln order appln_id limit 700000, 700000
however, equivalent (i thought) in t-sql returns rows:
select * tls201_appln order appln_id offset 700000 rows fetch next 700000 rows
what missing?
any pointers appreciated!
your syntax correct. code should retrieve rows 700001 1400000, ordered appln_id. offset-fetch new sql server 2012 , thing can think of code being run on earlier version. in case expect syntax error, not familiar patstat online.
Comments
Post a Comment