Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Limit number of rows returned from SQLEXEC( ) to Orac
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01281167
Message ID:
01281230
Views:
9
Hi Arthur,

ORACLE has not native support for LIMIT like as MySQL...
Python can use specific API of OCI (Oracle Call Interface) but VFP across ODBC no.
* is equal to TOP N
=CURSORSETPROP("MaxRecords",nRecords,0)
=SQLEXEC(...)

*or USE RemoteView with sets the same properties
* is equal to Limit M,N, where M is 1 at first 
=CURSORSETPROP("FetchSize",nRecords,0)
* Read the buffer and wait to any change (GO TO, SKIP,...)
=CURSORSETPROP("FetchASNeeded",.T.,0)
=SQLEXEC(...)

*or USE RemoteView with sets the same properties
MartinaJ

>I would like to process a relatively huge amount of data sequentially from Oracle without specific selection criteria. Python has a function called SelectLimit(sql, nlimit [, noffset]) that lets one select nlimit rows beginning at noffset, can I do this in VFP?
"Navision is evil that needs to be erazed... to the ground"

Jabber: gorila@dione.zcu.cz
Jabber? Jabbim
Previous
Reply
Map
View

Click here to load this message in the networking platform