LIMIT in FoxPro

Matthew Hood picture Matthew Hood · Mar 23, 2009 · Viewed 11.8k times · Source

I am attempting to pull ALOT of data from a fox pro database, work with it and insert it into a mysql db. It is too much to do all at once so want to do it in batches of say 10 000 records. What is the equivalent to LIMIT 5, 10 in Fox Pro SQL, would like a select statement like

select name, address from people limit 5, 10;

ie only get 10 results back, starting at the 5th. Have looked around online and they only make mention of top which is obviously not of much use.

Answer

Eyvind picture Eyvind · Mar 23, 2009

Take a look at the RecNo() function.