Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Return Top N from Oracle SP
Message
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00620360
Message ID:
00620371
Views:
44
>Anyone know of a way to return the TOP N rows from an Oracle package. I have a package that will return a cursor back to VFP, but I can't figure out out to return just the TOP N rows. I need the solution to be for the Oracle side and not just returning the entire cursor to VFP then taking the first 100 records.
>
>TIA!

Add WHERE ROWNUM <= N to the select statement.

HTH.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform