× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



On 14-Sep-2015 11:58 -0600, Koester, Michael wrote:
After getting the count
(select count(*) into :resultCount from...)
, and declaring and opening a cursor, I can successfully use

exec sql
fetch MyCursor for :resultCount rows
into :ArrayDS;

But there apparently are no shorter shortcuts.

FWiW: As two separate queries, what is explained in the quoted text is suggestive of an apparent assumption being made, that the count from the prior query should remain unchanging from the first to the second query; i.e. unless the row-data is static since the completion of the first query until the completion of the second query, the value of resultCount may not be an accurate reflection of how many rows will be available in the result-set of the second query.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.